Jump to content
  • 0

R> Item to Kafra points and item to zeny in 1 NPC


Quesooo

Question


  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

Requesting for 1 NPC that can exchange item to kafra points and can be exchange item to zeny

 

1 item = 1 kafra points

1 item = 5000 zeny

 

thank you

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  1137
  • Reputation:   290
  • Joined:  04/29/13
  • Last Seen:  

you mean your custom item to zeny and another item to cashpoints ? or cashpoints to zeny and vise versa ?

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

18 hours ago, Cyro said:

you mean your custom item to zeny and another item to cashpoints ? or cashpoints to zeny and vise versa ?

item to kafra points and the other choices is item to zeny 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

npc have 2 option

 

1 is for coupon to kafra points ( 1 coupon is equal to 1 kafra point )

2 is coupon to zeny ( 1 coupon is equal to 5000 zeny )

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

prontera,100,100,3	script	Converter	100,{

mes "Convert Menu";
if(select("Coupon to Kafra Pts:Coupon to Zeny")== 1) { goto ckafra; end; }
else { goto czeny; end; }

ckafra:
next;
mes "Input Amount";
input .@ckafra;
next;
set .@kafratotal, .@ckafra*1;
mes "Converting "+.@ckafra+" coupon to "+.@kafratotal+" kafra points, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .@couponid, .@ckafra;
set #KAFRAPOINTS,#KAFRAPOINTS+.@kafratotal;
close;

czeny:
next;
mes "Input Amount";
input .@czeny;
next;
set .@zenytotal, .@czeny*5000;
mes "Converting "+.@czeny+" coupon to "+.@zenytotal+" zeny, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .@couponid, .@czeny;
set #ZENY,#ZENY+.@zenytotal;
close;

OnInit:
set .@couponid, 909;
end;

}

Try this.

Edited by sotf
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  1191
  • Reputation:   161
  • Joined:  06/12/12
  • Last Seen:  

Sorry Wrong post

please delete this post.

 

Edited by hendra814
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

2 hours ago, sotf said:

prontera,100,100,3	script	Converter	100,{

mes "Convert Menu";
if(select("Coupon to Kafra Pts:Coupon to Zeny")== 1) { goto ckafra; end; }
else { goto czeny; end; }

ckafra:
next;
mes "Input Amount";
input .@ckafra;
next;
set .@kafratotal, .@ckafra*1;
mes "Converting "+.@ckafra+" coupon to "+.@kafratotal+" kafra points, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .@couponid, .@ckafra;
set #KAFRAPOINTS,#KAFRAPOINTS+.@kafratotal;
close;

czeny:
next;
mes "Input Amount";
input .@czeny;
next;
set .@zenytotal, .@czeny*5000;
mes "Converting "+.@czeny+" coupon to "+.@zenytotal+" zeny, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .@couponid, .@czeny;
set #ZENY,#ZENY+.@zenytotal;
close;

OnInit:
set .@couponid, 909;
end;

}

Try this.

Thank you i will try this after work ^_^

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

On 7/16/2017 at 8:04 PM, sotf said:

prontera,100,100,3	script	Converter	100,{

mes "Convert Menu";
if(select("Coupon to Kafra Pts:Coupon to Zeny")== 1) { goto ckafra; end; }
else { goto czeny; end; }

ckafra:
next;
mes "Input Amount";
input .@ckafra;
next;
set .@kafratotal, .@ckafra*1;
mes "Converting "+.@ckafra+" coupon to "+.@kafratotal+" kafra points, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .@couponid, .@ckafra;
set #KAFRAPOINTS,#KAFRAPOINTS+.@kafratotal;
close;

czeny:
next;
mes "Input Amount";
input .@czeny;
next;
set .@zenytotal, .@czeny*5000;
mes "Converting "+.@czeny+" coupon to "+.@zenytotal+" zeny, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .@couponid, .@czeny;
set #ZENY,#ZENY+.@zenytotal;
close;

OnInit:
set .@couponid, 909;
end;

}

Try this.

script is not working cant figure out whats the problem the item cannot be deleted also donot add kafra point after converting

 

same on the next menu for zeny and coupon is not working also

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

On ‎7‎/‎17‎/‎2017 at 9:18 PM, Questune09 said:

script is not working cant figure out whats the problem the item cannot be deleted also donot add kafra point after converting

 

same on the next menu for zeny and coupon is not working also

Did you change the item id to your coupon's item id?

EDIT: My bad, try this:

prontera,100,100,3	script	Converter	100,{

mes "Convert Menu";
if(select("Coupon to Kafra Pts:Coupon to Zeny")== 1) { goto ckafra; end; }
else { goto czeny; end; }

ckafra:
next;
mes "Input Coupon Amount";
input .@ckafra;
next;
set .@kafratotal, .@ckafra*1;
mes "Converting "+.@ckafra+" coupon 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+" coupons to "+.@kafratotal+" Kafra Points.";
dispbottom "You now have "+#KAFRAPOINTS+" Kafra Points";
dispbottom "=========================================";
close;

czeny:
next;
mes "Input Coupon Amount";
input .@czeny;
next;
set .@zenytotal, .@czeny*5000;
mes "Converting "+.@czeny+" coupon to "+.@zenytotal+" zeny, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .couponid, .@czeny;
set #ZENY,#ZENY+.@zenytotal;
dispbottom "=========================================";
dispbottom "Convert: You converted "+.@czeny+" coupons to "+.@zenytotal+" Kafra Points.";
dispbottom "You now have "+#ZENY+" Kafra Points";
dispbottom "=========================================";
close;

OnInit:
set .couponid, 909;
end;

}

 

Edited by sotf
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

22 hours ago, sotf said:

Did you change the item id to your coupon's item id?

EDIT: My bad, try this:


prontera,100,100,3	script	Converter	100,{

mes "Convert Menu";
if(select("Coupon to Kafra Pts:Coupon to Zeny")== 1) { goto ckafra; end; }
else { goto czeny; end; }

ckafra:
next;
mes "Input Coupon Amount";
input .@ckafra;
next;
set .@kafratotal, .@ckafra*1;
mes "Converting "+.@ckafra+" coupon 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+" coupons to "+.@kafratotal+" Kafra Points.";
dispbottom "You now have "+#KAFRAPOINTS+" Kafra Points";
dispbottom "=========================================";
close;

czeny:
next;
mes "Input Coupon Amount";
input .@czeny;
next;
set .@zenytotal, .@czeny*5000;
mes "Converting "+.@czeny+" coupon to "+.@zenytotal+" zeny, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .couponid, .@czeny;
set #ZENY,#ZENY+.@zenytotal;
dispbottom "=========================================";
dispbottom "Convert: You converted "+.@czeny+" coupons to "+.@zenytotal+" Kafra Points.";
dispbottom "You now have "+#ZENY+" Kafra Points";
dispbottom "=========================================";
close;

OnInit:
set .couponid, 909;
end;

}

 

working on coupon to zeny convert but coupon to zeny is not working

 

czeny:
next;
mes "Input Coupon Amount";
input .@czeny;
next;
set .@zenytotal, .@czeny*5000;
mes "Converting "+.@czeny+" coupon to "+.@zenytotal+" zeny, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem 7588, .@czeny;
set #ZENY,#ZENY+.@zenytotal;
dispbottom "=========================================";
dispbottom "Convert: You converted "+.@czeny+" coupons to "+.@zenytotal+" Zeny.";
dispbottom "You now have "+#ZENY+" Zeny";
dispbottom "=========================================";
close;

OnInit:
set 7588, 909;
end;

}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

prontera,100,100,3	script	Converter	100,{

mes "Convert Menu";
if(select("Coupon to Kafra Pts:Coupon to Zeny")== 1) { goto ckafra; end; }
else { goto czeny; end; }

ckafra:
next;
mes "Input Coupon Amount";
input .@ckafra;
next;
set .@kafratotal, .@ckafra*1;
mes "Converting "+.@ckafra+" coupon 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+" coupons to "+.@kafratotal+" Kafra Points.";
dispbottom "You now have "+#KAFRAPOINTS+" Kafra Points";
dispbottom "=========================================";
close;

czeny:
next;
mes "Input Coupon Amount";
input .@czeny;
next;
set .@zenytotal, .@czeny*5000;
mes "Converting "+.@czeny+" coupon to "+.@zenytotal+" zeny, continue?";
if(select("No:Yes")==1) { close; }
next;
mes "Done!";
delitem .couponid, .@czeny;
set #ZENY,#ZENY+.@zenytotal;
dispbottom "=========================================";
dispbottom "Convert: You converted "+.@czeny+" coupons to "+.@zenytotal+" Kafra Points.";
dispbottom "You now have "+#ZENY+" Kafra Points";
dispbottom "=========================================";
close;

OnInit:
set .couponid, 7588;
end;

}

Try this ^

 

About your edit:

OnInit:
set 7588, 909;
end;

It should be:

OnInit:
set .couponid, 7588;
end;

that's the only part you need to change (except for the mes and dispbottoms if you want to change the displayed messages)

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  197
  • Topics Per Day:  0.07
  • Content Count:  883
  • Reputation:   28
  • Joined:  02/13/17
  • Last Seen:  

thank you

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