Currently Posted May 23, 2014 Posted May 23, 2014 comodo,191,157,4 script Event Kafra 803,{ set @npc$,"[Event Kafra]"; if (strcharinfo(0)=="x") goto L_givegm; if ($winner$ == strcharinfo(0) && $@wincheck == 1 ) { mes @npc$; mes "Welcome to x Event Prize Kafra."; next; mes "There is your prize!"; rentitem @rentalid,@rentaltime; announce ""+$winner$+" claimed the prize! Have fun with your reward!", bc_all; set $winner$,""; set $@wincheck, 0; close; } else { mes @npc$; mes "You are not authorized."; close; L_givegm: if ($@wincheck == 1) { mes @npc$; mes "Reward not received yet. Wait until the person gets the reward."; menu "Reset reward?",-; next; mes @npc$; mes "Done."; set $winner$,""; set $@wincheck, 0; next; announce "A Game Master reset the event prize reward.", bc_all; close; } else { mes @npc$; mes "x rental headgear / item."; menu "Give Prize?",-; mes "Type the winner's name:"; input $winner$; next; mes "Type the rental ID."; input @rentalid; next; mes "Type the rental time."; input @rentaltime; next; announce "Dear: "+$winner$+", you can now claim the prize in the x Event Kafra.", bc_all; next; set $@wincheck, 1; close; } } } The script works but it does not give any headgear or the reward.. Quote
Emistry Posted May 23, 2014 Posted May 23, 2014 you're using wrong variable type.. chang eall these @rentalid @rentaltime to .rentalid .rentaltime 1 Quote
Question
Currently
The script works but it does not give any headgear or the reward..
1 answer 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.