nesotomayor Posted July 14, 2014 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
Skorm Posted July 14, 2014 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
VladimirCastro Posted September 3, 2014 Posted September 3, 2014 can someone conver this to eathena Quote
Emistry Posted September 3, 2014 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
Question
nesotomayor
hi,
requesting for a script npc that will convert your 10 voting points to 1 lotti ticket.
please advise,
thanks
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.