optionaction in itempackets im guessing, never worked with vencilio.
|
Where/how would I do this? I want the right click "Operate" to teleport to x, y.
ItemPackets?
Here's a simple one click teleport (first click)
What would I have to do to make it the 2nd, or 3rd, etc?Code:case 10952:// slayer bell player.getMagic().teleport(2441, 9806, 0, TeleportTypes.SPELL_BOOK); player.send(new SendMessage("The magic from the bell teleports you.")); break;
There should be another method for secondclick or secondoption scroll down in the class file.
If you have it added client sided, it should be one of your 'option on interface' packet.
ItemPackets class find case 16 ( For 2nd option )
(The switch statement isn't needed u can just do if itemId equals to this id, do this.)Code:switch(itemId) { case 6570: player.getMagic().teleport(3333, 3333, 3333, TeleportTypes.SPELL_BOOK); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |