Jump to content
  • 0

script problem


cadz

Question


  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

hi can you help me? it doesn't remove the item and bugged when i put 0 its still go exchange if i put 1000 but i got only 500 he still give me 1000

-    script    Board Lady    -1,{

mes "[ Board Lady]";
mes "Hi ther adventurer";
mes "do you have board tickets?";
mes "i can convert it to kafra Points";
mes "so you can buy at the free cash shop NPC";
next;
mes "[Board Lady]";
mes "^009900 1 ticket = 1 kafra Points";
mes "do you want to continue?";
if(select("yes:no")== 1) { goto ckafra; end; }
else { goto czeny; end; }

ckafra:
next;
mes "Input Coupon Amount";
input .@ckafra;
next;
set .@kafratotal, .@ckafra*1;
mes "Converting "+.@ckafra+" Board Quest Ticket to "+.@kafratotal+" kafra points, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .couponid, .@ckafra;
set #KAFRAPOINTS,#KAFRAPOINTS+.@kafratotal;
dispbottom "=========================================";
dispbottom "Convert: You converted "+.@ckafra+" Board Quest Ticket to "+.@kafratotal+" Kafra Points.";
dispbottom "You now have "+#KAFRAPOINTS+" Kafra Points";
dispbottom "=========================================";
close;

czeny:
next;
mes "thank you come again";
close;

OnInit:
set .couponid, 7338;
end;

}

// --------------------------------------------------
//    Duplicates:
// --------------------------------------------------
prontera,124,82,2    duplicate(Board Lady)    Board Lady#prt    646
alberta,33,240,5    duplicate(Board Lady)    Board Lady#alb    646
izlude,134,94,5    duplicate(Board Lady)    Board Lady#iz    646
morocc,164,97,5    duplicate(Board Lady)    Board Lady#moc    646
payon,166,101,5    duplicate(Board Lady)    Board Lady#pay    646
lighthalzen,162,100,5    duplicate(Board Lady)    Board Lady#light    646
rachel,136,106,5    duplicate(Board Lady)    Board Lady#rach    646
veins,224,125,5    duplicate(Board Lady)    Board Lady#vein    646

 

Edited by cadz
Please Code Box
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1530
  • Reputation:   234
  • Joined:  08/03/12
  • Last Seen:  

15 hours ago, cadz said:

hi can you help me? it doesn't remove the item and bugged when i put 0 its still go exchange if i put 1000 but i got only 500 he still give me 1000


-    script    Board Lady    -1,{

mes "[ Board Lady]";
mes "Hi ther adventurer";
mes "do you have board tickets?";
mes "i can convert it to kafra Points";
mes "so you can buy at the free cash shop NPC";
next;
mes "[Board Lady]";
mes "^009900 1 ticket = 1 kafra Points";
mes "do you want to continue?";
if(select("yes:no")== 1) { goto ckafra; end; }
else { goto czeny; end; }

ckafra:
next;
mes "Input Coupon Amount";
input .@ckafra;
next;
set .@kafratotal, .@ckafra*1;
mes "Converting "+.@ckafra+" Board Quest Ticket to "+.@kafratotal+" kafra points, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .couponid, .@ckafra;
set #KAFRAPOINTS,#KAFRAPOINTS+.@kafratotal;
dispbottom "=========================================";
dispbottom "Convert: You converted "+.@ckafra+" Board Quest Ticket to "+.@kafratotal+" Kafra Points.";
dispbottom "You now have "+#KAFRAPOINTS+" Kafra Points";
dispbottom "=========================================";
close;

czeny:
next;
mes "thank you come again";
close;

OnInit:
set .couponid, 7338;
end;

}

// --------------------------------------------------
//    Duplicates:
// --------------------------------------------------
prontera,124,82,2    duplicate(Board Lady)    Board Lady#prt    646
alberta,33,240,5    duplicate(Board Lady)    Board Lady#alb    646
izlude,134,94,5    duplicate(Board Lady)    Board Lady#iz    646
morocc,164,97,5    duplicate(Board Lady)    Board Lady#moc    646
payon,166,101,5    duplicate(Board Lady)    Board Lady#pay    646
lighthalzen,162,100,5    duplicate(Board Lady)    Board Lady#light    646
rachel,136,106,5    duplicate(Board Lady)    Board Lady#rach    646
veins,224,125,5    duplicate(Board Lady)    Board Lady#vein    646

 

your script doesnt have check requirements. I didnt give it a try, but u can see this post and implement it 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  83
  • Topics Per Day:  0.02
  • Content Count:  243
  • Reputation:   1
  • Joined:  08/29/12
  • Last Seen:  

thanks!!!!

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