Jump to content
  • 0

Item Changer.


pojiejapan

Question


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  126
  • Reputation:   6
  • Joined:  11/18/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

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 .@changername$,"[ Item Changer ]";// YOU MAY CHANGE THE NAME OF THE NPC
set .tcgid,7227;
set @tcgamount,1;
//======================= Settings End ====================================
//*************************************************************************
mes .@changername$;
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 .@changername$;
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 .@changername$;
mes "Okay let me check if";
mes "you have the Potions";
next;
mes .@changername$;
mes "Rustle... Rustle...";
if(countitem(501) < 1) goto l_noitem;
delitem 501,1
next;
mes .@changername$;
getitem .tcgid,@tcgamount;
mes "Here take your TCG Cards!";
close;
case 2:
mes .@changername$;
mes "Okay let me check if";
mes "you have the Potions";
next;
mes .@changername$;
mes "Rustle... Rustle...";
if(countitem(505) < 1) goto l_noitem;
delitem 505,1
next;
mes .@changername$;
getitem .tcgid,@tcgamount;
mes "Here take your TCG Cards!";
close;
case 3:
mes .@changername$;
mes "Okay goodbye!";
close;
}
case 2:
mes .@changername$;
mes "Okay goodbye!";
close;
}
l_noitem:
mes .@changername$;
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


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  126
  • Reputation:   6
  • Joined:  11/18/11
  • Last Seen:  

thanks a lot sir /no1 Problem Solved!

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