Jump to content
  • 0
pojiejapan

Item Changer.

Question

Can I request a simple Item changer?

For example : White Potion, Red Potion, Green Potion and Blue Potion all can be change to TCG.

Player talks to NPC:

NPC : Hye what do you want to convert your Potion to TCG?

-menu : Yes : No

-Yes : What type of potion you want to change to TCG?

- menu :

-Red Potion

-Blue Potion

Player Select and he get TCG /no1

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

It would be like this in the Script :


//====================== rAthena Script ===================================
//=== Made by Rikimaru
//=== Topic Link : http://rathena.org/board/topic/57794-item-changer/
//==================== Information ========================================
//==== a easy Item Changer from Potions to TCG's
//================= Version : =============================================
//=== V 1.1 Fixed a typo in the Script [ Rikimaru ]
//=== V 1.0 Finished Scripting the Item Changer [ Rikimaru ]
//============== Credits : ================================================
//=== Credits to Rikimaru for the Item Changer Script
//=== rAthena Profile Link : http://rathena.org/board/user/434-rikimaru/
//=========================================================================
//*************************************************************************
mapname,XXX,YYY,DIRECTION script Item Changer 911,{
//=========================== Settings ====================================
set [email protected]$,"[ Item Changer ]";// YOU MAY CHANGE THE NAME OF THE NPC
set .tcgid,7227;
set @tcgamount,1;
//======================= Settings End ====================================
//*************************************************************************
mes [email protected]$;
mes "Hello "+strcharinfo(0)+" , what";
mes "can I do for you today?";
mes "Do you want to exchange";
mes "your Potions into TCG Cards?";
next;
switch(select("Yes exchange!:Cancel")) {
case 1:
mes [email protected]$;
mes "Okay which Potion do";
mes "you want to exchange";
mes "to a TCG Card?";
next;
switch(select("-Red Potion:-Blue Potion:Cancel")) {
case 1:
mes [email protected]$;
mes "Okay let me check if";
mes "you have the Potions";
next;
mes [email protected]$;
mes "Rustle... Rustle...";
if(countitem(501) < 1) goto l_noitem;
delitem 501,1
next;
mes [email protected]$;
getitem .tcgid,@tcgamount;
mes "Here take your TCG Cards!";
close;
case 2:
mes [email protected]$;
mes "Okay let me check if";
mes "you have the Potions";
next;
mes [email protected]$;
mes "Rustle... Rustle...";
if(countitem(505) < 1) goto l_noitem;
delitem 505,1
next;
mes [email protected]$;
getitem .tcgid,@tcgamount;
mes "Here take your TCG Cards!";
close;
case 3:
mes [email protected]$;
mes "Okay goodbye!";
close;
}
case 2:
mes [email protected]$;
mes "Okay goodbye!";
close;
}
l_noitem:
mes [email protected]$;
mes "Sorry you have to get the items first!";
close;
}
[/codeBOX]

I hope that this helped you.

DOWNLOAD :

Item_Changer.txt

Greetings,

Rikimaru

Edited by Rikimaru
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.