Subzero Posted February 25, 2018 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 60 Reputation: 0 Joined: 07/25/16 Last Seen: August 5, 2021 Share Posted February 25, 2018 (edited) hello guys and team rA anyone can help me making a berry npc this npc will give a 30% chance to receive 10 yggdrasilberry, every times player want play,player need give 1 GOLD COIN Edited February 25, 2018 by Subzero Quote Link to comment Share on other sites More sharing options...
0 Orion Posted February 25, 2018 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 9 Reputation: 1 Joined: 02/14/18 Last Seen: March 11, 2018 Share Posted February 25, 2018 desert,41,51,5 script 50/50 Game 504,{ set .WinningRate,30; mes "[ Gambit ]"; mes "Do you want to gamble ?"; if( select("Yes:No") == 2 ) close; next; set .itemID,40001; // Set ID Gold Coin mes "[ Gambit ]"; mes "This is a betting game with a 30% win rate"; mes "Just bet the amount you want and push your luck !"; next; mes "[ Gambit ]"; mes "Do you want to gamble your "+getitemname( .itemID )+" with a "+.WinningRate+" % Win rate?"; next; if( select("Yes:No") == 2 ) close; mes "[ Gambit ]"; mes "Enter amount of "+getitemname( .itemID )+" you want to gamble"; input .Amount; next; mes "[ Gambit ]"; mes "Are you sure you want to gamble "+.Amount+" Gold Coin ?"; next; if( select("Yes:No") == 2 ) close; if( countitem( .itemID ) < .Amount ){ mes "[ Gambit ]"; mes "You dont have enough "+getitemname( .itemID )+" to gamble."; }else{ delitem .itemID,.Amount; if( rand(100) < .WinningRate ){ mes "[ Gambit ]"; mes "Congratulations ! You won !"; getitem 607,10*.Amount; }else{ mes "[ Gambit ]"; mes "Sad ! You lost. Better luck next time !"; } } close; } Quote Link to comment Share on other sites More sharing options...
0 Subzero Posted June 24, 2018 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 60 Reputation: 0 Joined: 07/25/16 Last Seen: August 5, 2021 Author Share Posted June 24, 2018 its posibble guys to make receive a random item?? Quote Link to comment Share on other sites More sharing options...
Question
Subzero
hello guys and team rA
anyone can help me making a berry npc
this npc will give a 30% chance to receive 10 yggdrasilberry,
every times player want play,player need give 1 GOLD COIN
Link to comment
Share on other sites
2 answers 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.