laklaker Posted January 26, 2012 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted January 26, 2012 Share 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 Link to comment Share on other sites More sharing options...
laklaker Posted January 26, 2012 Author Share Posted January 26, 2012 THANKS ALOT !! Quote Link to comment Share on other sites More sharing options...
NovaGFX Posted November 13, 2012 Share 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 Link to comment Share on other sites More sharing options...
krashdragon Posted July 8, 2013 Share Posted July 8, 2013 hi do u have if poring coin change to zeny? Quote Link to comment Share on other sites More sharing options...
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!!
Link to comment
Share on other sites