Jump to content
  • 0

200 Deadbranch=1tcg


darking123

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

i am requesting for a npc converter..but the player should input how many dead branch does he want...and the convertion should be 200=1tcg of 199=1tcg dead branch not enought,,, if 201=1tcg..200 only will be converted to 1=tcg

eathena svn

Edited by glemor123
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

You can use my Quest Shop: trunk/npc/custom/quests/quest_shop.txt

...,{ callfunc "qshop",<shop ID>; }
...
   Add(<shop ID>,7227,1,0,0,604,200);

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   2
  • Joined:  08/23/12
  • Last Seen:  

You may try this one :

x,x,x,x script Unknown Trader 912,{
mes "[ Sarah ]";
mes "Hello, traveller!";
mes "How may I help you today?";
 menu "- Trade Stuff",L_Trade,
  "- Nothing",-;
mes "[ Sarah ]";
mes "Oh! Thank you...";
close;
L_Trade:
mes "[ Sarah ]";
mes "I will replace your 200 Deadbranch into 1 TCG!";
next;
mes "[ Sarah ]";
mes "Are you sure you want to exchange your stuff?";
next;
menu "- Yes",L_Yes,
 "- No",-;
mes "[ Sarah ]";
mes "Oh! Thank you...";
close;
L_Yes:
mes "[ Sarah ]";
if(countitem(DBID) < 200) goto L_Not;  // CHANGE DBID INTO Deadbranch Item ID
delitem DBID, 200;   // CHANGE DBID INTO Deadbranch Item ID
getitem TCGID, 1;   // CHANGE TCGID INTO TCG Item ID
mes "The trade is complete.";
close;
L_Not:
mes "[ Sarah ]";
mes "You do not have enought Deadbranch to complete this action.";
close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

the problem in the script is..that player will click and click the npc if they have many deadbranch..which they are being annoyed

Link to comment
Share on other sites


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


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

im gonna try this out 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...