DrakeSky Posted August 3, 2020 Posted August 3, 2020 Hi! Scripters, Need help on this, an item script that once you use an item it is either the player that opens the item will die or the player that opens the item will receive an item. TIA! Quote
0 PottScilgrim Posted August 3, 2020 Posted August 3, 2020 { .@rNum = rand(1,100); if(.@rNum < 20) percentheal -100,0; if(.r@Num >= 20) getitem 501,1; },{},{} This currently has a 20% chance to kill the player, and 80% chance to reward them with an item. Change the 20 to whatever percent you'd like the cutoff to be for death vs item. Change the item from 501 to whatever you want the item to be. Quote
Question
DrakeSky
Hi! Scripters,
Need help on this, an item script that once you use an item it is either the player that opens the item will die or the player that opens the item will receive an item.
TIA!
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.