How to "stay" in a waypoint until the fight is over?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

How to "stay" in a waypoint until the fight is over?

#1 Post by Cindy » Sun Aug 18, 2013 6:46 pm

So I enter a zone, and want to kill mobs coming at me in waves until they stop, and get sent back to the previous zone (guild castle). How do I not advance to the next waypoint? ie stay in current one?

I was thinking of doing a while loop checking on what zone i am in until im back in guild castle. Incidentally anyone know what the ID is for the Guild Castle Zone? (and are the mini's in there a different zone?)

Is there a smarter way?

Thanks

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: How to "stay" in a waypoint until the fight is over?

#2 Post by lisa » Sun Aug 18, 2013 7:01 pm

you can get zone ID just by bringing up the games FPS display, control X from memory.

sounds like a while loop would work, need to do an update in the loop and I'd say just do a findenemy and if it finds an enemy do player:fight() on it

Code: Select all

repeat

if player:target(player:findEnemy(true,nil,evalTargetDefault)) then
player:fight()
end
yrest(500)

until getZoneId() == ***
That is just to give you an idea

if that isn't ideal just do.

Code: Select all

player:target(player:findEnemy())
I assume it is just mobs you can kill in there.
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

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: How to "stay" in a waypoint until the fight is over?

#3 Post by Cindy » Sun Aug 18, 2013 10:52 pm

Yes they come in waves, 10 or 15 sec apart, i forgot. More come each wave, there is 10 rounds (if i recall correctly). The trouble is that there is a period where there are no enemies, as the mage takes them down very fast with AoE.

Oh wow, Ctrl-X I never saw that since my button bars are over it. Thanks lisa.

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: How to "stay" in a waypoint until the fight is over?

#4 Post by Cindy » Sun Aug 18, 2013 11:11 pm

I'm thinking that this code should work

Code: Select all

while(RoMScript("GetZoneID()") ~= 354) do yrest(10000) end;
Since a round is 10 sec (if its 15, ill make the ywrest 15000), I should not move to next waypoint before next wave of mobs aggro me and I fight them. Once fight is over, will they 'yrest' resume? Should this work? (I can't test until tomorrow, since its only once a day for the mini).

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: How to "stay" in a waypoint until the fight is over?

#5 Post by Ego95 » Mon Aug 19, 2013 3:40 pm

I know exactly what you want to do. But the thing is, that the zone id doesn't change. You are on the drill ground and you will get ported back to the start point of the drill ground with a short loadingscreen.

AlterEgo95

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: How to "stay" in a waypoint until the fight is over?

#6 Post by Cindy » Mon Aug 19, 2013 6:13 pm

You are right, ZoneID stays the same... can i do ax/y coordinate based check? Also there is yellow text, "Stage x" that is readable right? maybe I could go off that.

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: How to "stay" in a waypoint until the fight is over?

#7 Post by Cindy » Mon Aug 19, 2013 11:43 pm

Code: Select all

	
        <!-- #  10 --><waypoint x="5120" z="2537" y="13">	
	    __WPL:setForcedWaypointType("NORMAL");
		player:target_NPC(112006); yrest(500);  --"Special Training Manager");
		sendMacro("ChoiceOption(2);"); yrest(500);
		sendMacro("ChoiceOption(2);"); yrest(500); waitForLoadingScreen(20); rest(3000);
		yrest(160000); 
	</waypoint>
This code failed :(

So the question is, how do I stay in this waypoint for 160 seconds, and fight like I was doing wander waypoint with distance set to 0?

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: How to "stay" in a waypoint until the fight is over?

#8 Post by rock5 » Tue Aug 20, 2013 10:00 am

Did you try Lisas example above?
  • 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: How to "stay" in a waypoint until the fight is over?

#9 Post by lisa » Tue Aug 20, 2013 10:55 pm

Cindy wrote:So the question is, how do I stay in this waypoint for 160 seconds,
Just alter the loop I did to be for time.

Code: Select all

local tt = os.time()
repeat

if player:target(player:findEnemy(true,nil,evalTargetDefault)) then
player:fight()
end
yrest(500)

until os.time() - tt >= 160
That is off the top of my head, should work though.
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

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: How to "stay" in a waypoint until the fight is over?

#10 Post by Cindy » Tue Aug 20, 2013 11:08 pm

Ok will try. First one won't work because zoneid stays the same.

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: How to "stay" in a waypoint until the fight is over?

#11 Post by Cindy » Tue Aug 20, 2013 11:35 pm

Worked great ! thanks

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest