// --------------------------------------------------------------------------
// --------------------------------------------------------------------------
// 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.
// --------------------------------------------------------------------------
- script Costume-IT -1,{
mes "[Costume-IT]";
mes "Hello and welcome to the Costume-IT service.";
mes "Here you can convert your headgears into a Costume Headgear.";
next;
mes "[Costume-IT]";
mes "Please, select what to convert.";
mes "Remember, cards and refine will be removed.";
next;
setarray [email protected]$[1],"Top","Mid","Low";
setarray [email protected][1], 1, 9, 10;
set [email protected]$,"";
for( set [email protected], 1; [email protected] < 4; set [email protected], [email protected] + 1 )
{
if( getequipisequiped([email protected][[email protected]]) )
set [email protected]$, [email protected]$ + [email protected]$[[email protected]] + "-" + "[" + getequipname([email protected][[email protected]]) + "]";
set [email protected]$, [email protected]$ + ":";
}
set [email protected], [email protected][ select([email protected]$) ];
if( !getequipisequiped([email protected]) )
{
mes "[Costume-IT]";
mes "Your not wearing anything there...";
close;
}
mes "[Costume-IT]";
mes "You want to Costume your " + getitemname(getequipid([email protected])) + "?";
next;
if( select("Yes, proceed:No, I am sorry.") == 2 )
{
mes "[Costume-IT]";
mes "Need some time to think about it, huh?";
mes "Alright, I can understand.";
close;
}
costume [email protected]; // Convert the Headgear
mes "[Costume-IT]";
mes "Done, enjoy your costume headgear.";
close;
}
// --------------------------------------------------------------------------
// Use duplicates to put your npc on different cities
// --------------------------------------------------------------------------
prontera,140,168,4 duplicate(Costume-IT) Costume-IT#1 864
how can i require an item before using the npc?
// -------------------------------------------------------------------------- // -------------------------------------------------------------------------- // 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. // -------------------------------------------------------------------------- - script Costume-IT -1,{ mes "[Costume-IT]"; mes "Hello and welcome to the Costume-IT service."; mes "Here you can convert your headgears into a Costume Headgear."; next; mes "[Costume-IT]"; mes "Please, select what to convert."; mes "Remember, cards and refine will be removed."; next; setarray [email protected]$[1],"Top","Mid","Low"; setarray [email protected][1], 1, 9, 10; set [email protected]$,""; for( set [email protected], 1; [email protected] < 4; set [email protected], [email protected] + 1 ) { if( getequipisequiped([email protected][[email protected]]) ) set [email protected]$, [email protected]$ + [email protected]$[[email protected]] + "-" + "[" + getequipname([email protected][[email protected]]) + "]"; set [email protected]$, [email protected]$ + ":"; } set [email protected], [email protected][ select([email protected]$) ]; if( !getequipisequiped([email protected]) ) { mes "[Costume-IT]"; mes "Your not wearing anything there..."; close; } mes "[Costume-IT]"; mes "You want to Costume your " + getitemname(getequipid([email protected])) + "?"; next; if( select("Yes, proceed:No, I am sorry.") == 2 ) { mes "[Costume-IT]"; mes "Need some time to think about it, huh?"; mes "Alright, I can understand."; close; } costume [email protected]; // Convert the Headgear mes "[Costume-IT]"; mes "Done, enjoy your costume headgear."; close; } // -------------------------------------------------------------------------- // Use duplicates to put your npc on different cities // -------------------------------------------------------------------------- prontera,140,168,4 duplicate(Costume-IT) Costume-IT#1 864Link to comment
Share on other sites