SRL Archive - Help

MouseItem and InvMouse help?


Ian

2012-10-29 20:09:44

Hey guys, quick question (I think)

Whenever I try to use these functions I get a Type Mismatch error.

InvMouse(3, leftClick);
MouseItem(3, true);

Any ideas why I get this error with these functions?

Thanks

riwu

2012-10-29 20:22:38

The second parameter, Action, can only be a byte. Hence you cannot pass a Boolean, or the type fnct_ActionOptions to it.

Use mouse constants like mouse_Left, mouse_Right, mouse_move.

Ian

2012-10-29 20:28:45

From: riwu
The second parameter, Action, can only be a byte. Hence you cannot pass a Boolean, or an unknown identifier (leftclick) to it.

Use mouse constants like mouse_Left, mouse_Right, mouse_move.


Thanks! Should someone should change the example here?: http://docs.villavu.com/srl-5/inventory.html#mouseitem

Also, I notice you are always the person to reply to scripting help, you're awesome :)