Jump to content

Question

Posted
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..

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.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...