newton666
Posts: 81 Joined: Fri Oct 22, 2010 3:16 pm
#1
Post
by newton666 » Mon Jan 02, 2012 2:01 am
wondering if anyone know what im doing wrong or can fix this for please.
The problem is that it keeps recasting the mount instaead of stoping once it's finished:-
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
while(true) do
repeat
player:update();
partyleader = GetPartyMemberAddress(1)
if partyleader ~= nil then partyleaderaddress = partyleader end
player:lootAll();
RoMScript("FollowUnit('party1');");
RoMScript("AssistUnit('party1');");
RoMScript("ScoutRogue()");
RoMScript("MountToggle()");
player:update();
until partyleader == nil
repeat
keyboardHold(settings.hotkeys.MOVE_FORWARD.key)
yrest(500);
keyboardRelease(settings.hotkeys.MOVE_FORWARD.key)
waitForLoadingScreen(5)
until partyleaderaddress ~= nil
end
</onLoad>
</waypoints>
would be very greatfully if someone can point me in the right direction or edit what ive done wrong or need to do
thx
alos Happy Newyear everyone
lisa
Posts: 8332 Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia
#2
Post
by lisa » Mon Jan 02, 2012 3:57 am
repeat
player:update();
partyleader = GetPartyMemberAddress(1)
if partyleader ~= nil then partyleaderaddress = partyleader end
player:lootAll();
RoMScript("FollowUnit('party1');");
RoMScript("AssistUnit('party1');");
RoMScript("ScoutRogue()");
RoMScript("MountToggle()");
player:update();
until partyleader == nil
Basically it will keep doing everything you have there until you arn't in a party anymore.
You are better off using the MM code for mounting.
If it was me though i would probably put in a check for leaving combat and then do those things.
newton666
Posts: 81 Joined: Fri Oct 22, 2010 3:16 pm
#3
Post
by newton666 » Mon Jan 02, 2012 4:25 am
so how do i do a check for the mount buff ?
so that if it has the mount buff alrdy it wont recast
lisa
Posts: 8332 Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia
#4
Post
by lisa » Mon Jan 02, 2012 4:31 am
does it all for you.
just replace your
with