Jump to content
  • 0

Coin Exchanger- Coin to Coin


Fai T.Flowright

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   2
  • Joined:  10/09/12
  • Last Seen:  

hey, i'm requesting script for coin to coin

example:

5bronze -> 1gold

5gold -> 1 platinum

5platinum -> 1poring coin

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  520
  • Reputation:   64
  • Joined:  11/19/11
  • Last Seen:  

Just change the Item ID's.

prontera,138,181,5, script Trader 828,{

set .bronze,555;//item id of bronze
set .gold,555;//item id of gold
set .platinum,555;//item id of platinum
set .poringcoin,555;//item id of poring coin
set @header$,"[^0000ff Trader ^000000]";//NPC Name

mes @header$;
mes "Hello";
menu "5 Bronze to 1Gold",-,"5 Gold to 1 Platinum",gtp,"5 Platinum to 1 Poring Coin",ptp;
if(countitem(.bronze) < 5) goto L_NOTENOUGH;
next;
mes @header$;
mes "Thanks. . See you again. . . !";
delitem .bronze,5;
getitem .gold,1;
close;

gtp:
if(countitem(.gold) < 5) goto L_NOTENOUGH;
next;
mes @header$;
mes "Thanks. . See you again. . . !";
delitem .gold,5;
getitem .platinum,1;
close;

ptp:
if(countitem(.gold) < 5) goto L_NOTENOUGH;
next;
mes @header$;
mes "Thanks. . See you again. . . !";
delitem .gold,5;
getitem .poringcoin,1;
close;

L_NOTENOUGH:
next;
mes @header$;
mes "Not enough requirements";
close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   2
  • Joined:  10/09/12
  • Last Seen:  

errr sir, u mean like this?

http://pastebin.com/cwcgJWTS

Edited by Fai T.Flowright
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

//set .bronze,673;//item id of bronze
//set .gold,671;//item id of gold
//set .platinum,677;//item id of platinum
//set .poringcoin,7539;//item id of poring coin
//set @header$,"[^0000ff Trader ^000000]";//NPC Name

Uncomment this lines.

ptp:
if(countitem(.gold) < 5) goto L_NOTENOUGH;

should be

ptp:
   if(countitem(.platinum) < 5) goto L_NOTENOUGH;

You can used .@variable instead of .variable

gonryun,141,130,5    script    Trader    828 ,{

   set .@bronze,673;//item id of bronze
   set .@gold,671;//item id of gold
   set .@platinum,677;//item id of platinum
   set .@poringcoin,7539;//item id of poring coin
   set .@header$,"[^0000ff Trader ^000000]";//NPC Name

   mes .@header$;
   mes "Hello";
   next;
   menu "5 Bronze to 1Gold",-,"5 Gold to 1 Platinum",gtp,"5 Platinum to 1 Poring Coin",ptp;

   if(countitem(.@bronze) < 5) goto L_NOTENOUGH;
   mes .@header$;
   mes "Thanks. . See you again. . . !";
   delitem 673,5;
   getitem 671,1;
   close;

gtp:
   if(countitem(.@gold) < 5) goto L_NOTENOUGH;
   mes .@header$;
   mes "Thanks. . See you again. . . !";
   delitem 671,5;
   getitem 677,1;
   close;

ptp:
   if(countitem(.@platinum) < 5) goto L_NOTENOUGH;
   mes .@header$;
   mes "Thanks. . See you again. . . !";
   delitem 677,5;
   getitem 7539,1;
   close;

L_NOTENOUGH:
   mes .@header$;
   mes "Not enough requirements";
   close;
}

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