What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Help with travel function

kowalski987

New Member
Joined
Oct 14, 2014
Messages
33
Reaction score
0
Can someone please help me make this travel function work. When traveling over water the bot should use the submarine and when on land to use a donkey.
public void gpsPreMove(GpsPoint point)
{
{
if (me.isUnderWaterBreath && !isMounted("Platinum Steamfish Submarine") && getMount() == null)
DespawnMount();
UseItem("Platinum Steamfish Submarine");
Thread.Sleep(1000);
SitToMount();
}
{
if (!me.isUnderWaterBreath && !isMounted("Brown Donkey") && getMount() == null)
DespawnMount();
UseItem("Brown Donkey");
Thread.Sleep(1000);
SitToMount();
}
}
 
Code:
public void gpsPreMove(GpsPoint point)
{
if (me.isUnderWaterBreath && !isMounted("Platinum Steamfish Submarine") && [B]getMount() == null[/B])
[B][COLOR="#FF0000"]DespawnMount();[/COLOR][/B]
UseItem("Platinum Steamfish Submarine");
Thread.Sleep(1000);
SitToMount(); 
}

Without having had a look at the documentation for this, imo the red part can never trigger.
 
Back
Top