Jump to content
  • 0

who can change this one


Help-Help

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  108
  • Reputation:   2
  • Joined:  03/16/13
  • Last Seen:  

50 esg = 50 cash points 100 esg = 100 cash points 500 esg = 500 cash points 1000 esg = 1000 cash points

5000 esg = 5000 cash points id of esg is 19600

gonryun,154,111,5	script	Convert NPC	108,{

mes "I can exchange your Emblem Of the Sun God to Cash Points.";
next;
mes "How many would you like to exchange?";
menu "1000 gold",gold_1k,"2000 gold",gold_2k,"5000 gold",gold_5k,"10,000 gold",gold_10k,"30,000 gold",gold_30k,"None",end1;

end1:
next;
mes "See you again.";
close;

gold_1k:
if (countitem(969) < 1000) goto end2;
next;
mes "Here you go.";
getitem 29999,100;
delitem 969,1000;
mes "Thank you. Come again.";
close;

gold_2k:
if (countitem(969) < 2000) goto end2;
next;
mes "Here you go.";
getitem 29999,200;
delitem 969,2000;
mes "Thank you. Come again.";
close;

gold_5k:
if (countitem(969) < 5000) goto end2;
next;
mes "Here you go.";
getitem 29999,500;
delitem 969,5000;
mes "Thank you. Come again.";
close;

gold_10k:
if (countitem(969) < 10000) goto end2;
next;
mes "Here you go.";
getitem 29999,1000;
delitem 969,10000;
mes "Thank you. Come again.";
close;

gold_30k:
if (countitem(969) < 30000) goto end2;
next;
mes "Here you go.";
getitem 29999,3000;
delitem 969,30000;
mes "Thank you. Come again.";
close;

end2:
next;
mes "Sorry, you don't have enough gold for this transaction.";
close;
}

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  410
  • Reputation:   29
  • Joined:  04/04/12
  • Last Seen:  

Just change the

getitem 29999,3000;
delitem 969,30000;

 

To

 

delitem 19600,amount;

set #CASHPOINTS,#CASHPOINTS+amount;

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