Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ItemDrop = 0; //Insert the id of the item you want to drop
- ItemNoDrop = 0; //Insert the id of the item you want to no drop
- Possibility = 10; //Insert a random number to set the chance to drop, 1 = 100%
- Randomize = true; //Only values true and false
- Drop = true; //Only values true and false
- NoDrop = false; //Only values true and false
- event onPlayerDeath(player, cause, murdererId){
- if(Drop == true){
- if(Randomize == true and random.int(0, Possibility) == 4){
- player.inventory.addItem(ItemDrop, 1);
- player.inventory.addItem(ItemDrop, 1); //You can delete this line, this is only for add other item
- return;
- }
- if(Randomize == false){
- player.inventory.addItem(ItemDrop, 1);
- }
- }
- if(NoDrop == true);
- player.inventory.removeItem(ItemNoDrop, 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement