Jump to content
  • 0

tcg code


VladimirCastro

Question


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

i have script that change only tcg to zeny how can i put 2nd category that chagne zeny to tcg heres my script

prontera,157,181,4 script Exchanger 2 2035,{
mes "Please input the amount of TCG you wish to change into Zeny";
mes "Each TCG = 100,000 zeny";
mes "Currently , you have "+countitem(7227)+" TCG.";
input @amount,0,countitem(7227);
if ( @amount < 1){
mes "You have choose to end the deal.";
close;
}
delitem 7227,@amount;
set Zeny,Zeny+(@amount*100000);
mes "You have changed "+@amount+" TCG into Zeny.";
close;
}
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:  

Use hex color codes, e.g.

mes "^FF0000This text is displayed in red.^000000";
mes "You can also ^FFFF00highlight^000000 individual blocks."
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  270
  • Reputation:   20
  • Joined:  12/10/11
  • Last Seen:  

So change the sign of set zeny to a negative sign, and instead of delitem, its getitem

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

So change the sign of set zeny to a negative sign, and instead of delitem, its getitem

what i mean is First Category is tcg to zeny 2nd will be zeny to tcg .

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  114
  • Topics Per Day:  0.03
  • Content Count:  298
  • Reputation:   4
  • Joined:  03/13/12
  • Last Seen:  

how can i make the text in color>

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