nesotomayor Posted July 14, 2014 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 122 Reputation: 0 Joined: 06/08/14 Last Seen: October 2, 2014 Share Posted July 14, 2014 hi, requesting for a script npc that will convert your 10 voting points to 1 lotti ticket. please advise, thanks Quote Link to comment Share on other sites More sharing options...
Skorm Posted July 14, 2014 Group: Forum Moderator Topic Count: 33 Topics Per Day: 0.01 Content Count: 1282 Reputation: 393 Joined: 02/03/12 Last Seen: April 11 Share Posted July 14, 2014 Replace <item_id> with the ticket id. prontera,100,100,5 script Lotto Ticket 100,{ mes "[Lotto Ticket Dealer]"; mes "How many voting points would you like to exchange?"; mes "[10 Voting points = 1 Lotto Ticket]"; next; switch( input( .@pas1, 10, #KAFRAPOINTS ) ) { case -1: mes "[Lotto Ticket Dealer]"; mes "You can't go that low; the minimum value is 10."; close; case 1: mes "[Lotto Ticket Dealer]"; mes "You don't have that many voting points!"; close; } #KAFRAPOINTS = #KAFRAPOINTS - (.@pas1-(.@pas1%10)); mes " [Lotto Ticket Dealer]"; mes "Thank you please come again!"; getitem <item_id>, .@pas1/10; close; } Quote Link to comment Share on other sites More sharing options...
VladimirCastro Posted September 3, 2014 Group: Members Topic Count: 114 Topics Per Day: 0.02 Content Count: 298 Reputation: 4 Joined: 03/13/12 Last Seen: September 18, 2016 Share Posted September 3, 2014 can someone conver this to eathena Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 3, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 04:49 PM Share Posted September 3, 2014 can someone conver this to eathena #KAFRAPOINTS = #KAFRAPOINTS - (.@pas1-(.@pas1%10)); change to set #KAFRAPOINTS,( #KAFRAPOINTS - ( .@pas1 - ( .@pas1 % 10 ) ) ); for details read this http://rathena.org/board/topic/78263-scripting-faqtipstricks/?p=267219 Quote Link to comment Share on other sites More sharing options...
Question
nesotomayor
hi,
requesting for a script npc that will convert your 10 voting points to 1 lotti ticket.
please advise,
thanks
Link to comment
Share on other sites
3 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.