I am having an error in the script @costume, this error is appearing, who can help me I thank you right now, my emulator is rAthena and I am with this error, the script is posted here too.
Erro
parse_line: expect command, missing function name or calling undeclared function
40 : mes "[Clown]";
41 : mes "Need some time to think about it, huh?";
42 : mes "Alright, I can understand.";
43 : close;
44 : }
* 45 : 'c'ostume [email protected]; // Convert the Headgear
46 : mes "[Clown]";
47 : mes "Done, enjoy your costume headgear.";
48 : close;
49 : case 2:
50 : next;
Script
// -------------------------------------------------------------------------------
// Script Name : Headgear to Costume converter >> Costume to Headgear 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.
// - Allows a user to restore the equipped costume headgear (on Top, Mid or Low)
// into its original form. It will not return any card or refine of the item.
// -------------------------------------------------------------------------------
- script Costume Clown -1,{
mes "[Clown]";
mes "Here you can convert your headgears into a Costume Headgear or restore to its Original form.";
switch(select("I want to convert.:I want to restore.:No thanks.")) {
case 1:
next;
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] < 5; 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 "[Clown]";
mes "Your not wearing anything there...";
close;
}
mes "[Clown]";
mes "You want to Costume your " + getitemname(getequipid([email protected])) + "?";
next;
if( select("Yes, proceed:No, I am sorry.") == 2 )
{
mes "[Clown]";
mes "Need some time to think about it, huh?";
mes "Alright, I can understand.";
close;
}
costume [email protected]; // Convert the Headgear
mes "[Clown]";
mes "Done, enjoy your costume headgear.";
close;
case 2:
next;
mes "Please, select what to restore.";
mes "Remember, I will only restore it back without refine and cards.";
next;
setarray [email protected]$[1],"Top","Mid","Low";
setarray [email protected][1], 13, 12, 11;
set [email protected]$,"";
for( set [email protected], 1; [email protected] < 5; 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 "[Clown]";
mes "Your not wearing anything there...";
close;
}
mes "[Clown]";
mes "You want to restore your " + getitemname(getequipid([email protected])) + "?";
next;
if( select("Yes, proceed:No, I am sorry.") == 2 )
{
mes "[Clown]";
mes "Need some time to think about it, huh?";
mes "Alright, I can understand.";
close;
}
a = getequipid([email protected]);
delitem a,1;
getitem a,1;
mes "[Clown]";
mes "Done, enjoy your restored headgear.";
close;
case 3:
mes "[Clown]";
mes "Very well. Return at once if you seek my services.";
close;
}
}
// --------------------------------------------------------------------------
// Use duplicates to put your npc on different cities
// --------------------------------------------------------------------------
prontera,155,181,4 duplicate(Costume Clown) Costume Clown#1 715
I am having an error in the script @costume, this error is appearing, who can help me I thank you right now, my emulator is rAthena and I am with this error, the script is posted here too.
Erro
parse_line: expect command, missing function name or calling undeclared function
40 : mes "[Clown]";
41 : mes "Need some time to think about it, huh?";
42 : mes "Alright, I can understand.";
43 : close;
44 : }
* 45 : 'c'ostume [email protected]; // Convert the Headgear
46 : mes "[Clown]";
47 : mes "Done, enjoy your costume headgear.";
48 : close;
49 : case 2:
50 : next;
Script
// -------------------------------------------------------------------------------
// Script Name : Headgear to Costume converter >> Costume to Headgear 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.
// - Allows a user to restore the equipped costume headgear (on Top, Mid or Low)
// into its original form. It will not return any card or refine of the item.
// -------------------------------------------------------------------------------
- script Costume Clown -1,{
mes "[Clown]";
mes "Here you can convert your headgears into a Costume Headgear or restore to its Original form.";
switch(select("I want to convert.:I want to restore.:No thanks.")) {
case 1:
next;
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] < 5; 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 "[Clown]";
mes "Your not wearing anything there...";
close;
}
mes "[Clown]";
mes "You want to Costume your " + getitemname(getequipid([email protected])) + "?";
next;
if( select("Yes, proceed:No, I am sorry.") == 2 )
{
mes "[Clown]";
mes "Need some time to think about it, huh?";
mes "Alright, I can understand.";
close;
}
costume [email protected]; // Convert the Headgear
mes "[Clown]";
mes "Done, enjoy your costume headgear.";
close;
case 2:
next;
mes "Please, select what to restore.";
mes "Remember, I will only restore it back without refine and cards.";
next;
setarray [email protected]$[1],"Top","Mid","Low";
setarray [email protected][1], 13, 12, 11;
set [email protected]$,"";
for( set [email protected], 1; [email protected] < 5; 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 "[Clown]";
mes "Your not wearing anything there...";
close;
}
mes "[Clown]";
mes "You want to restore your " + getitemname(getequipid([email protected])) + "?";
next;
if( select("Yes, proceed:No, I am sorry.") == 2 )
{
mes "[Clown]";
mes "Need some time to think about it, huh?";
mes "Alright, I can understand.";
close;
}
a = getequipid([email protected]);
delitem a,1;
getitem a,1;
mes "[Clown]";
mes "Done, enjoy your restored headgear.";
close;
case 3:
mes "[Clown]";
mes "Very well. Return at once if you seek my services.";
close;
}
}
// --------------------------------------------------------------------------
// Use duplicates to put your npc on different cities
// --------------------------------------------------------------------------
prontera,155,181,4 duplicate(Costume Clown) Costume Clown#1 715
Link to comment
Share on other sites