DrakeSky Posted August 3, 2020 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 69 Reputation: 0 Joined: 03/27/18 Last Seen: March 26, 2023 Share 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 Link to comment Share on other sites More sharing options...
0 PottScilgrim Posted August 3, 2020 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 18 Reputation: 12 Joined: 04/10/20 Last Seen: March 4, 2021 Share 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 Link to comment Share on other sites More sharing options...
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!
Link to comment
Share on other sites
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.