laklaker Posted January 26, 2012 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 109 Reputation: 0 Joined: 12/27/11 Last Seen: February 25, 2020 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 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: Wednesday at 12:29 PM 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 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 109 Reputation: 0 Joined: 12/27/11 Last Seen: February 25, 2020 Author Share Posted January 26, 2012 THANKS ALOT !! Quote Link to comment Share on other sites More sharing options...
NovaGFX Posted November 13, 2012 Group: Members Topic Count: 1 Topics Per Day: 0.00 Content Count: 25 Reputation: 0 Joined: 08/22/12 Last Seen: December 23, 2013 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 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 56 Reputation: 4 Joined: 06/20/13 Last Seen: August 31, 2021 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...
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!!
Link to comment
Share on other sites
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.