Kill specific mobs, drop item

Use NPC script:

Code:
-    script    OnKillMonsterDoDropItem    -1,{    OnNPCKillEvent:    switch(killedrid) {        case 1002: // Poring            if(rand(10000) < 500) { // < 100 = 1% drop chance                getitem 7539, 1; // Poring Coin                break;            } else break;                default: // All other monsters            break;    }}
 
bonus3 bAddClassDropItem,item id,mid,n; Adds a n/100% chance of dropping item id when killing monster mid

 
Last edited by a moderator:
@@Angelmelody mid ? means ? 

for example  I want to get 100% on dead branch on killing scorpion. Like this :?

bonus3 bAddClassDropItem,604,1001,100;

@@Oxxy No sir, I wanto to make a item based script. on equip. hehe. like mimic card, but on specific card.

 
@@Angelmelody mid ? means ? 

for example  I want to get 100% on dead branch on killing scorpion. Like this :?

bonus3 bAddClassDropItem,604,1001,100;

@@Oxxy No sir, I wanto to make a item based script. on equip. hehe. like mimic card, but on specific card.
mid = monster idn/100% chance --> n/10000

100% ===> n = 10000

 
@@mrlongshen

here you go

work only for accessory cards when equipped

put some monster array and item array just incase
default_happy.png
 

http://pastebin.com/29UAR58t

 
Last edited by a moderator:
Back
Top