laklaker Posted January 26, 2012 Posted January 26, 2012 Can i request for something event npc? Like a gambling npc. When you trade 1000 coins it will be 3000 coins ? But only 10% chance? THANKS ALOT!! Quote
Emistry Posted January 26, 2012 Posted January 26, 2012 try this prontera,155,181,5 script Sample 757,{ set .itemID,7539; set .Amount,1000; set .WinningRate,10; mes "Do you want to gamble with yours "+getitemname( .itemID )+" ?"; mes "You need "+.Amound+" of it...and only "+.WinningRate+" % to win."; next; if( select("Yes:No") == 2 ) close; if( countitem( .itemID ) < .Amount ){ mes "You didnt have enough of "+.Amount+" each."; }else{ delitem .itemID,.Amount; if( rand(100) < 10 ){ mes "Congratz...you win.."; getitem .itemID,3 * .Amount; }else{ mes "Failed"; } } close; } 1 Quote
NovaGFX Posted November 13, 2012 Posted November 13, 2012 Emistry, try and expand on your script. For example, you should make it so it will randomly give out of the choice For example: 5 x Yggdrasil berry (20% chance) 1x Gym Membership box (20% chance) 20 x Yggdrasil berry (15% chance) Then the grand prize will be 10x mithril coin (5% or 1% chance) Quote
krashdragon Posted July 8, 2013 Posted July 8, 2013 hi do u have if poring coin change to zeny? Quote
Question
laklaker
Can i request for something event npc? Like a gambling npc. When you trade 1000 coins it will be 3000 coins ? But only 10% chance? THANKS ALOT!!
4 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.