Something like this should work: Add it in the bankItem method.
Code:int[] unbankables = {1042, 1048}; for (int id : unbankables) { if (itemID == id) { c.sendMessage("This item cannot be banked"); return false; } }
|
Hi guys!
Sorry to be posting here so much but I googled it and wondered if there was a PROPER way to do this before I go and look at the banking methods.
How do I make a specific item id UNBANKABLE meaning when you try and bank it it does not let you?
Help would be greatly appreciated, thank you.
Something like this should work: Add it in the bankItem method.
Code:int[] unbankables = {1042, 1048}; for (int id : unbankables) { if (itemID == id) { c.sendMessage("This item cannot be banked"); return false; } }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |