The problem is that it's under secondClickObject. It should go into the options for items NOT objects.
|
So, the item I'm trying to make right click options for is very cliche. Rotten potato.
Current right-click options:
All I want to happen, is when I click on one of the options other than drop or use it will show an option list in the chatbox.
The option list looks sort of like this, but with different options:
All I have in actionhandler is this & it is under secondclickobject
BTW, clicking 'Slice' wields the potato. I'd like to change that as well.Code:case 5733:
If anybody knows how to do this & would like to help, I'd be very grateful! Thanks!
The problem is that it's under secondClickObject. It should go into the options for items NOT objects.
To fix the wield thing, go into your wield item packet handling class (probably WieldItem or WearItem for PI, I kinda forget), and add a return statement for that item ID.
if (i == 5733) {
//put the stuff you actually want it to do before the return statement.
return;
}
The stuff you put in the curly braces before the return statement will execute when you click that option, and the return statement stops it from wielding the potato.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |