Waypoint jumping

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
zarakie
Posts: 7
Joined: Tue Nov 22, 2011 12:52 pm

Waypoint jumping

#1 Post by zarakie »

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 .
Attachments
Untitled.png
Last edited by zarakie on Sun Dec 04, 2011 4:57 pm, edited 1 time in total.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Waypoint jumping

#2 Post by rock5 »

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
zarakie
Posts: 7
Joined: Tue Nov 22, 2011 12:52 pm

Re: Waypoint jumping

#3 Post by zarakie »

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 .
Attachments
ks .xml
(4.98 KiB) Downloaded 317 times
BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Waypoint jumping

#4 Post by BillDoorNZ »

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 !! :(
zarakie
Posts: 7
Joined: Tue Nov 22, 2011 12:52 pm

Re: Waypoint jumping

#5 Post by zarakie »

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
BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Waypoint jumping

#6 Post by BillDoorNZ »

just another side note :)

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
that the changeProfileOption lines should be put below the settings.loadProfile ?? Presumably the settings.loadProfile call will overwrite the changeProfileOption changes?
BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Waypoint jumping

#7 Post by BillDoorNZ »

maybe a

Code: Select all

player:update();
call after the player = CPlayer.new();???

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

#8 Post by BillDoorNZ »

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>
zarakie
Posts: 7
Joined: Tue Nov 22, 2011 12:52 pm

Re: Waypoint jumping

#9 Post by zarakie »

Love u Man it worked :D
BillDoorNZ
Posts: 446
Joined: Wed Aug 03, 2011 7:37 pm

Re: Waypoint jumping

#10 Post by BillDoorNZ »

lol, glad I could help...not sure why its not getting the right index tho! :(
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Waypoint jumping

#11 Post by rock5 »

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
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Waypoint jumping

#12 Post by lisa »

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.
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
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Re: Waypoint jumping

#13 Post by Germangold »

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)


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>
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Waypoint jumping

#14 Post by lisa »

I'd say the reason yours works is because you tell it to find nearest waypoint.

Code: Select all

  __WPL:setWaypointIndex(__WPL:getNearestWaypoint(player.X, player.Z));
On a side note you don't need to use

Code: Select all

repeat zoneid = RoMScript("GetZoneID()") until zoneid
anymore, I added a function to get id from memory.

Code: Select all

getZoneId()
Because it gets it from memory it will have values even while in loading screen, so you will never get a nil returned.
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
Post Reply