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

useItem() MountedState LastError

totalschaden

Active Member
Joined
Feb 16, 2010
Messages
1,146
Reaction score
1
Hey, im trying to use Labor Pots while Mounted, if you do it by Hand it works, so its supported by the Game. Using them while unmounted works fine.
Test made with item.id 34070 // 500 LP Pot.

If I however try to use it while mounted, AB will throw MountedState LastError MountedState Field
Example:
Code:
if (!myitem.UseItem())
    Log(GetLastError().ToString(), Color.Red);
else
    Log("Used Labor Pot: " + myitem.name, Color.Green);

Im using Item Class (UseItem Method)
Example:
Code:
myItem.UseItem();

I did not test with the Core Class(UseItem Method) yet, gues its the same outcome.

Any chance to get this fixed ?
 
Last edited:
Until its fixed, I suppose you could check to see if you're mounted:
if (isMounted(me) == true){
StandFromMount();
thread.Sleep(2000); //Wait to get off mount
//Use the potion
sitToMount();
}
 
Try to use:
Code:
if(me.sitOnMount)
     //do that
else
    // do that

this should work.
 
Please stop posting condition checks, I need this fixed so I can use it while mounted. And the only one able to fix it is Out.
 
Than pm Out for fix don't make thread!
Btw.
Please stop condition checks....

You getting condition error...
You can't see that?
 
Last edited:
Than pm Out for fix don't make thread!
Btw.


You getting condition error...
You can't see that?

What are you talking about? That's clearly a bug as Out mentioned, you better stop being a smart ass posting innacurate solutions...
 
Last edited:
Back
Top