How to "stay" in a waypoint until the fight is over?
How to "stay" in a waypoint until the fight is over?
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
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
Re: How to "stay" in a waypoint until the fight is over?
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
That is just to give you an idea
if that isn't ideal just do.
I assume it is just mobs you can kill in there.
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() == ***
if that isn't ideal just do.
Code: Select all
player:target(player:findEnemy())
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
Re: How to "stay" in a waypoint until the fight is over?
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.
Oh wow, Ctrl-X I never saw that since my button bars are over it. Thanks lisa.
Re: How to "stay" in a waypoint until the fight is over?
I'm thinking that this code should work
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).
Code: Select all
while(RoMScript("GetZoneID()") ~= 354) do yrest(10000) end;
Re: How to "stay" in a waypoint until the fight is over?
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
AlterEgo95
Re: How to "stay" in a waypoint until the fight is over?
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.
Re: How to "stay" in a waypoint until the fight is over?
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>
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?
Re: How to "stay" in a waypoint until the fight is over?
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
Re: How to "stay" in a waypoint until the fight is over?
Just alter the loop I did to be for time.Cindy wrote:So the question is, how do I stay in this waypoint for 160 seconds,
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
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
Re: How to "stay" in a waypoint until the fight is over?
Ok will try. First one won't work because zoneid stays the same.
Re: How to "stay" in a waypoint until the fight is over?
Worked great ! thanks
Who is online
Users browsing this forum: Bing [Bot] and 1 guest