cmon someone?
|
how will i make it a misc random drop like i want 1 of my npc to drop a item with amount between 1-80
cmon someone?
what base server are you using? different ones have different drop systems.
pi...
In NPCHandler, dropItems method
Just add something like
It's not good if your trying to add a whole drop system, but if you just one monster to drop one thing for 1/80 chance, then that's a simple way.Code:if (npcs[i].npcType == NPCID) { if (Misc.random(80) == 1) Server.itemHandler.createGroundItem(c, all the arguments, you can find em in another place where they use this method); }
bad way to handle it... first of all i will still get my normal drop lile always, and if i use a return for stop my normal drop i will maybe return the rare drop i was supposted to get after like 10 kills because misc random activate aswell, means i will lose the rare drop and maybe end up make it double as rare get rares and i cannot just half the rares drop rate because if i not get the misc it will be to easy to get it and over all it will mess up my system
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |