Jump to content
  • 0

rentitem Event reward


Currently

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.04
  • Content Count:  313
  • Reputation:   1
  • Joined:  01/22/12
  • Last Seen:  

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2350
  • Joined:  10/28/11
  • Last Seen:  

you're using wrong variable type..

 

chang eall  these

@rentalid
@rentaltime

to

.rentalid
.rentaltime
  • Upvote 1
Link to comment
Share on other sites

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.

×
×
  • Create New...