actionHandler,
I'm not sure what you meant regarding the last question.Code:case OBJID: c.getItems().addItem(995, 1+Misc.random(5)); break;
|
How do I make when you click a object it gives you a random amount of cash between 1 and 5? Will it also woke for tokens when I kill npc?
actionHandler,
I'm not sure what you meant regarding the last question.Code:case OBJID: c.getItems().addItem(995, 1+Misc.random(5)); break;
Would that work? And does it mean it's between 100 and 500?Code:if (npcs[i].npcType == 1) { c.Points += 100+Misc.random(500); }
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |