Page 1 of 1

Using mount from starter package

Posted: Fri Aug 31, 2012 5:49 am
by Hidden
I'm trying to get my bot to open and use first 2 packages

<!-- # 20 --><waypoint x="-3786" z="-8624" y="224">
player:target_NPC("Reideen");
CompleteQuestByName("Claim Your Potions");
yrest(500);
inventory:useItem(201843);
yrest(5000);
inventory:useItem(201844);
yrest(5000);
inventory:useItem(Brown Horse (1 Day));
</waypoint>

So far it will open the 2 packages but will not mount.
Using the name causes and error and crashes the script and using the id code 203571 the bot seems to ignore and walk off on its way to the next waypoint.

I feel like I have missed something simple....

Re: Using mount from starter package

Posted: Fri Aug 31, 2012 7:56 am
by gloover
use player:mount() instead of inventory:useItem(Brown Horse (1 Day)); and stay happy ;-)
this function will use every mount, firtst found in your bag.

Re: Using mount from starter package

Posted: Fri Aug 31, 2012 8:06 am
by Hidden
Thanks gloover found my error needed to add a yrest after.and the syntax errors no " "
Wasnt waiting to summon the mount and just running off.