stop the :ickup command make it for rights = 2
|
hey ok so i've added a halloween event from a tut.. but my server is pickup.. so the reward are useless.. is there a way for it so you cant pick it up..if not then is there a way were u hve to complete the event to wear it.. and its not tradable
stop the :ickup command make it for rights = 2
Just a guess change itemID to the id of your item, and if you're using delta replace sendMessage with sM, Also here's what your pickup code should look like when it's done, or close to it;Code:} else { if (itemid == itemID) { sendMessage("Go do the halloween even to get this item!"); }
Code:if (command.startsWith("pickup")) { String[] args = command.split(" "); if (args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if (newItemID <= 160000 && newItemID >= 0) { addItem(newItemID, newItemAmount); } else { sendMessage("No such item."); } } else { sendMessage(Use as ::pickup ITEMID AMOUNT"); } } else { if (itemid == itemID) { sendMessage("Go do the halloween even to get this item!"); } } }
help
Code:client.java:10918: cannot find symbol symbol : variable itemid location: class client if (itemid == 10054) { ^ 1 error Finished! Press any key to continue . . .
Let's correct the above shall we..?
Just replace "halloweenitemidhere" with your halloween item ID.Code:if(command.equalsIgnoreCase("pickup")) { String[] args = command.split(" "); if(args.length == 3) { int newItemID = Integer.parseInt(args[1]); int newItemAmount = Integer.parseInt(args[2]); if (newItemID <= 160000 && newItemID >= 0) { if(newItemID != halloweenitemidhere) { addItem(newItemID, newItemAmount); } else { sM("Goto the halloween event for this item!"); } } else { sM("Item ID Limit: 0 - 160000"); } } else { sM("Oops! Use as ::pickup ItemID Amount"); } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |