Jump to content
  • 0

Costume Converter Cost


awesomazingxed

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  95
  • Reputation:   0
  • Joined:  10/24/14
  • Last Seen:  

Hello everybody. 

Can anyone help me with this script. 

This one is a free costume converter, I want like players give 1 event ticket to the Costume Converter npc. 

Event Ticket ID: 7711

Thanks in advance

// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// eAmod Project - Scripts
// --------------------------------------------------------------------------
// Script Name : Headgear to Costume converter
// --------------------------------------------------------------------------
// Description :
// Allows a user to convert the equipped headgear (on Top, Mid or Low) into a
// costume item. It will remove any card and refine of the Item.
// --------------------------------------------------------------------------

phtownall,214,218,4 script Fashion Designer 604,{
mes "[Costume Converter]";
mes "I can convert your original headgear into a costume headgear.";
mes " ";
mes "Note: Stats, Cards & Refine will be removed. Costume is placed in your Costume Tab (ALT+Q)";
next;

setarray .@Position$[1],"Top","Mid","Low";
setarray .@Position[1],     1,    9,   10;

set .@Menu$,"";
for( set .@i, 1; .@i < 4; set .@i, .@i + 1 )
{
if( getequipisequiped(.@Position[.@i]) )
set .@Menu$, .@Menu$ + .@Position$[.@i] + " - " + "[ " + getequipname(.@Position[.@i]) + " ]";

set .@Menu$, .@Menu$ + ":";
}

set .@Part, .@Position[ select(.@Menu$) ];
if( !getequipisequiped(.@Part) )
{
mes "[Costume Converter]";
mes "Your not wearing anything there...";
close;
}

mes "[Costume Converter]";
mes "Are you sure you want to make your headgear into a costume?";
mes " ";
mes "Note: Stats, Cards & Refine will be removed. Costume is placed in your Costume Tab (ALT+Q)";
next;
if( select("No, I am sorry.:Yes, please convert my item.") == 2 )
{
costume .@Part; // Convert the Headgear
mes "[Costume Converter]";
mes "Done, enjoy your costume headgear!";
close;
}
mes "[Costume Converter]";
mes "Need some time to think about it, huh?";
mes "Alright, I can understand.";
close;
}

// --------------------------------------------------------------------------
// Use duplicates to put your npc on different cities
// --------------------------------------------------------------------------

//prontera,155,180,4 duplicate(Costume-IT) Costume-IT#1 864

 

 
Edited by Mael
Use a codebox
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  145
  • Topics Per Day:  0.07
  • Content Count:  354
  • Reputation:   8
  • Joined:  04/16/18
  • Last Seen:  

On 11/21/2014 at 4:05 AM, awesomazingxed said:

Hello everybody. 

Can anyone help me with this script. 

This one is a free costume converter, I want like players give 1 event ticket to the Costume Converter npc. 

 

Event Ticket ID: 7711

 

Thanks in advance

 

// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// eAmod Project - Scripts
// --------------------------------------------------------------------------
// Script Name : Headgear to Costume converter
// --------------------------------------------------------------------------
// Description :
// Allows a user to convert the equipped headgear (on Top, Mid or Low) into a
// costume item. It will remove any card and refine of the Item.
// --------------------------------------------------------------------------
 
phtownall,214,218,4 script Fashion Designer 604,{
mes "[Costume Converter]";
mes "I can convert your original headgear into a costume headgear.";
mes " ";
mes "Note: Stats, Cards & Refine will be removed. Costume is placed in your Costume Tab (ALT+Q)";
next;
 
setarray .@Position$[1],"Top","Mid","Low";
setarray .@Position[1],     1,    9,   10;
 
set .@Menu$,"";
for( set .@i, 1; .@i < 4; set .@i, .@i + 1 )
{
if( getequipisequiped(.@Position[.@i]) )
set .@Menu$, .@Menu$ + .@Position$[.@i] + " - " + "[ " + getequipname(.@Position[.@i]) + " ]";
 
set .@Menu$, .@Menu$ + ":";
}
 
set .@Part, .@Position[ select(.@Menu$) ];
if( !getequipisequiped(.@Part) )
{
mes "[Costume Converter]";
mes "Your not wearing anything there...";
close;
}
 
mes "[Costume Converter]";
mes "Are you sure you want to make your headgear into a costume?";
mes " ";
mes "Note: Stats, Cards & Refine will be removed. Costume is placed in your Costume Tab (ALT+Q)";
next;
if( select("No, I am sorry.:Yes, please convert my item.") == 2 )
{
costume .@Part; // Convert the Headgear
mes "[Costume Converter]";
mes "Done, enjoy your costume headgear!";
close;
}
mes "[Costume Converter]";
mes "Need some time to think about it, huh?";
mes "Alright, I can understand.";
close;
}
 
// --------------------------------------------------------------------------
// Use duplicates to put your npc on different cities
// --------------------------------------------------------------------------
 
//prontera,155,180,4 duplicate(Costume-IT) Costume-IT#1 864
 

how u put it to work?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

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