Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub EVENT_SPAWN {
- my @drop_zones = ("nexus", "anguish", "commons"); #zones where this crap will drop
- if( (grep { $_ eq $zonesn } @drop_zones) ) {
- #usage... (amount, chance, itemid)
- # (5, 1, 1001) .. would drop 5x Cloth cap 100% of the time..
- # (5, 100, 1001) .. would try 5x to drop Cloth cap at a 1% chance
- # (5, 500, 1001) .. would try 5x to drop Cloth cap at a 1 / 500 chance
- plugin::AddLoot(1, 400, 120026); #Upgrade stone
- #This allows arrays of items a chance to drop...
- #This example is 4 items with a 1/50 chance to drop but only tries one time
- my @itemlist = (1001, 1002, 1003, 1004);
- plugin::AddLoot(1, 50, @itemlist);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement