[Error]:
script error on npc/custom/guild_hall.txt line 637
expect ';' or '{' at function syntax
635:{636:*637: function script' 'F_restore {638:.@rental_item= getarg(0);639:.@second_item= getarg(1);640:.@third_item= getarg(2);641:.@give_item= getarg(3);642:
and here is the script, also is the script even correct ??
anyone have more simpler way for this script ?
i was trying or testing..
Spoiler
moc_para01,51,33,4 script GuildBlacksmith2826,{
function script F_restore {.@rental_item= getarg(0);.@second_item= getarg(1);.@third_item= getarg(2);.@give_item= getarg(3);if(rentalcountitem(.@rental_item)<1){
clear;
mes "You don't have a "+ getitemname(.@rental_item)+".";
close;}if(countitem(.@second_item)<1){
clear;
mes "You don't have a "+ getitemname(.@second_item)+".";
close;}if(countitem(.@third_item)<10){
clear;
mes "You don't have 10 "+ getitemname(.@third_item)+".";
close;}
clear;
soundeffect "menu.wav",0;
mes "^ce7e00 === Hafiz === ^000000";
mes "Great, here is your new "+ getitemname(.@give_item)+".";
delitem (.@rental_item),1;
delitem (.@second_item),1;
delitem (.@third_item),10;
getitem (.@give_item),1;
close;}
soundeffect "menu.wav",0;
mes "^ce7e00 === Hafiz === ^000000";
mes "Yes how can i help you ?";switch(select("- Restore:- Cancel")){case1://rental,1st,2nd,reward
callfunc "F_restore",40005,40225,40016,40004;case2:
end;}}
Question
Dolphin86
i got this error
and here is the script, also is the script even correct ??
anyone have more simpler way for this script ?
i was trying or testing..
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.