you got the method and import to playeritems?
|
in object option 2 ( i removed most of the code )
i added this under switch
and added thisCode:pi.addItem(p, 995, 100000); } else { p.frames.sendMessage(p, "You Have to Wait to steal again!"); } break;
underCode:PlayerItems pi = new PlayerItems();
but when i compile i get this..Code:public class ObjectOption2 implements Packet {
Code:.\palidino76\rs2\io\packets\ObjectOption2.java:108: variable pi might not have b een initialized pi.addItem(p, 995, 70000); ^
It means new PlayerItems() may not be called before you use additem(). So call it inside public client(
thank you that worked![]()
« How to, set int for all... | [508] npc Change options » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |