forked from rathena/rathena
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
295b3d1
commit e02ba8b
Showing
10 changed files
with
144 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
prontera,172,182,4 script Costumer#cs_0 646,{ | ||
mes "[ "+strnpcinfo(1)+" ]"; | ||
mes "I can convert your equipment into costumes!"; | ||
mes "^ff0000Warning!^000000"; | ||
mes "Converted item will lose all defense, refine, cards and abilities permanently!"; | ||
mes "I also charge a modest service fee of 30 Karvodailnirol, 30 Detrimindexta and 1 million zeny."; | ||
next; | ||
setarray .@Position$[1],"Top","Mid","Low","Garment"; | ||
setarray .@Position[1],EQI_HEAD_TOP , EQI_HEAD_MID,EQI_HEAD_LOW,EQI_GARMENT; | ||
set .@Menu$,""; | ||
for( set .@i, 1; .@i < 5; 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 "[ " + strnpcinfo(1) + " ]"; | ||
mes "You are not wearing anything there..."; | ||
close; | ||
} | ||
mes "[ "+strnpcinfo(1)+" ]"; | ||
mes "You want to Costume your " + getitemname(getequipid(.@Part)) + "?"; | ||
next; | ||
if( select("Yes, proceed:No, I am sorry.") == 2 ) | ||
{ | ||
mes "[ "+strnpcinfo(1)+" ]"; | ||
mes "Need some time to think about it, huh?"; | ||
mes "Alright, I can understand."; | ||
close; | ||
} | ||
if (Zeny<1000000) { mes "You didn't bring enough money!"; close; } | ||
if (Countitem(971)<30) { mes "You didn't bring enough Detrimindexta!"; close; } | ||
if (Countitem(972)<30) { mes "You didn't bring enough Karvodailnirol!"; close; } | ||
Zeny = Zeny - 1000000; | ||
delitem 971,30; | ||
delitem 972,30; | ||
costume .@Part; // Convert the Headgear | ||
mes "[ "+strnpcinfo(1)+" ]"; | ||
mes "Done, enjoy your costume headgear."; | ||
close; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters