Waypoint jumping
Waypoint jumping
Hi again i got the last issue for the opening new way point fixed already tx to u rock .
-- Re-initialize player
player = CPlayer.new();
settings.load();
settings.loadProfile("userdefault"); -- Profile name
But what is really strange happening now is the Same Ks.xml file im using doing funny now again if i run the file alone it works perfectly and with that code the bot stooped to move and jumped and rotate screen etc . but now its choosing Different Way point suddenly at the start ex: its when it start it tells me " hence way point #66 is closer than 1 we start from it " or something but again when i run the bot as new way point file it works but if i Let another way point file open it that's what happens .
-- Re-initialize player
player = CPlayer.new();
settings.load();
settings.loadProfile("userdefault"); -- Profile name
But what is really strange happening now is the Same Ks.xml file im using doing funny now again if i run the file alone it works perfectly and with that code the bot stooped to move and jumped and rotate screen etc . but now its choosing Different Way point suddenly at the start ex: its when it start it tells me " hence way point #66 is closer than 1 we start from it " or something but again when i run the bot as new way point file it works but if i Let another way point file open it that's what happens .
Last edited by zarakie on Sun Dec 04, 2011 4:57 pm, edited 1 time in total.
Re: Waypoint jumping
I fixed the issue with changing character recently. Have you updated?
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Waypoint jumping
Yah i updated both SVN and Rombot with update.lua and SVN update , the issue is still the same without the above code . but what i meant with the last question is the player choose to Run to different way point rather than start from beginning only at the dungeon not Outside it works fine outside and i tested the dungeon way-point alone without loading from another waypoint and its works great ,, its exactly happens like the file i attached thanks for help Rock once more.
I will Include the dungeon file maybe it show something .
I will Include the dungeon file maybe it show something .
- Attachments
-
- ks .xml
- (4.98 KiB) Downloaded 317 times
-
BillDoorNZ
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Waypoint jumping
Hmm...very interesting that one. Clearly your character is at 4478, 949 (as the error message indicates). So it shouldn't be finding #66 as your closest waypoint.
Do you have any code in your onLoad for your characters profile?
Also, prolly best to cut out / overwrite your characters name when you grab screenshots !!
Do you have any code in your onLoad for your characters profile?
Also, prolly best to cut out / overwrite your characters name when you grab screenshots !!
Re: Waypoint jumping
No no Onload code at all and that's whats makes me wonder why he choose that point :S he don't do that with other way-point file unless they are in dungeon.
tx for the warning about the name XD .already removed
tx for the warning about the name XD .already removed
-
BillDoorNZ
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Waypoint jumping
just another side note 
I am assuming that in waypoint 1 where you do:
that the changeProfileOption lines should be put below the settings.loadProfile ?? Presumably the settings.loadProfile call will overwrite the changeProfileOption changes?
I am assuming that in waypoint 1 where you do:
Code: Select all
<onLoad>changeProfileOption("TARGET_LEVELDIF_BELOW", 20);
changeProfileOption("MAX_TARGET_DIST", 50);
changeProfileOption("LOOT_DISTANCE", 60);
changeProfileOption("LOOT_AGAIN", 2000);
RoMScript("SetBootFrameAutoTake(1)");
-- Re-initialize player
player = CPlayer.new();
settings.load();
settings.loadProfile("MYTOONSPROFILE"); -- Profile name
-
BillDoorNZ
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Waypoint jumping
maybe a
call after the player = CPlayer.new();???
ahh...nm...I see it makes a call to that in the contructor anyway
Code: Select all
player:update();
ahh...nm...I see it makes a call to that in the contructor anyway
-
BillDoorNZ
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Waypoint jumping
nice hack below that might work:
Code: Select all
<onLoad>
RoMScript("SetBootFrameAutoTake(1)");
-- Re-initialize player
player = CPlayer.new();
settings.load();
settings.loadProfile("Xera"); -- Profile name
changeProfileOption("TARGET_LEVELDIF_BELOW", 20);
changeProfileOption("MAX_TARGET_DIST", 50);
changeProfileOption("LOOT_DISTANCE", 60);
changeProfileOption("LOOT_AGAIN", 2000);
__WPL:setWaypointIndex(1);
</onLoad>-
BillDoorNZ
- Posts: 446
- Joined: Wed Aug 03, 2011 7:37 pm
Re: Waypoint jumping
lol, glad I could help...not sure why its not getting the right index tho! 
Re: Waypoint jumping
Well, it is a bit unusual to load the profile in the onload section of the waypoint. I haven't seen it done like theat before. Off the top of my head I don't see an issue with that but maybe there is.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Waypoint jumping
I generally do it after doing the relog code, that way the profile is loaded before the WP, so the player information like coords is correct.
The issue of starting at the wrong waypoint might come down to that.
The issue of starting at the wrong waypoint might come down to that.
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
-
Germangold
- Posts: 276
- Joined: Thu Oct 22, 2009 3:58 am
Re: Waypoint jumping
This is rougly my onload section for my ks file
i have 10 Chars farming KS from start throgh boss "Locata" and then leaving ks to rerun
two pc's each runing 10 instances (5 for ks chars, 5 for invite buddys)
i have 10 Chars farming KS from start throgh boss "Locata" and then leaving ks to rerun
two pc's each runing 10 instances (5 for ks chars, 5 for invite buddys)
Code: Select all
<onLoad>
repeat zoneid = RoMScript("GetZoneID()") until zoneid
__WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X, player.Z));
-- your charnames
_firstChar = "firstchar";
_secondChar = "secondchar";
_thirdChar = "thirdchar";
-- generall idea is that each KS chars has a sparing partner
-- that is waitung for an invite
-- that to the addon InvitedByFriend
-- it automatically accepts the invite
--
function myinvite()
if (player.Name == _firstChar) then
while not RoMScript("UnitExists('party1')") do
sendMacro('InviteByName("firstToon")');
yrest(4000)
end
end
if (player.Name == _secondChar) then
while not RoMScript("UnitExists('party1')") do
sendMacro('InviteByName("secondtoon")');
yrest(4000)
end
end
if (player.Name == _thirdChar) then
while not RoMScript("UnitExists('party1')") do
sendMacro('InviteByName("thirdtoon")');
yrest(4000)
end
end
end
-- this is my subfunction that i check after 10-15 waypoint
-- to ensure there is still bagspace left while farming in ks
--
function bagchecker()
if inventory:itemTotalCount(0) == 0 then
sendMacro("LeaveParty();");
waitForLoadingScreen();
player:update();
__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
end
end
-- created this function to resolve someproblems with entering the ks portal
-- but i dont need it anymore thx to waittoloadingscreen()
function sokzone()
repeat zoneid = RoMScript("GetZoneID()") until zoneid
if (zoneid == 107) then
-- already in sok and go to first Sok coords
-- do nothing
end
if (zoneid == 6) or (zoneid == 1006) then
-- dust devil mountains
keyboardPress(key.VK_W); yrest(1000);
end
end
myinvite();
function myprofile()
if (player.Name == _secondChar) then
player = CPlayer.new();
settings.load();
settings.loadProfile("clfarm2");
-- clfarm2 is a profile for a mage/druid
end
if (player.Name ~= _secondChar) then
player = CPlayer.new();
settings.load();
settings.loadProfile("clfarm");
-- clfarm uses mainly purgartory fire to clean up monster group a
-- clfarm is a profile fora mage/priest
end
end
myprofile();
</onLoad>Re: Waypoint jumping
I'd say the reason yours works is because you tell it to find nearest waypoint.
On a side note you don't need to use
anymore, I added a function to get id from memory.
Because it gets it from memory it will have values even while in loading screen, so you will never get a nil returned.
Code: Select all
__WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X, player.Z));
Code: Select all
repeat zoneid = RoMScript("GetZoneID()") until zoneidCode: Select all
getZoneId()
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual