Page 1 of 1

Mounting problem

Posted: Mon Jan 02, 2012 2:01 am
by newton666
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

Re: Mounting problem

Posted: Mon Jan 02, 2012 3:57 am
by lisa
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.

Code: Select all

player:mount()

If it was me though i would probably put in a check for leaving combat and then do those things.

Re: Mounting problem

Posted: Mon Jan 02, 2012 4:25 am
by newton666
so how do i do a check for the mount buff ?
so that if it has the mount buff alrdy it wont recast

Re: Mounting problem

Posted: Mon Jan 02, 2012 4:31 am
by lisa

Code: Select all

player:mount()
does it all for you.

just replace your

Code: Select all

RoMScript("MountToggle()");
with

Code: Select all

player:mount()