Onguide:
if(getmapflag(strcharinfo(3),mf_gvg ) || getmapflag(strcharinfo(3),mf_pvp) || getmapflag(strcharinfo(3),mf_gvg_castle)) {
mes "[ Guide ]";
mes "this command can only be used on ^FF0000 Towns. ^000000";
end;
}
else {
mes "[ Guide ]";
mes "Hello, " + strcharinfo(0) + "!";
mes "How may I help you?!";
Main:
i had this script where in you type @guide custom command
but i recieving error and debug on console how to fix it?
Error buildin_strcharinfo fatal error player not attached
Question
kalabasa
- script guide::guideme -1,{
OnInit:
bindatcmd "guide", strnpcinfo(3) +"::Onguide";
Onguide:
if(getmapflag(strcharinfo(3),mf_gvg ) || getmapflag(strcharinfo(3),mf_pvp) || getmapflag(strcharinfo(3),mf_gvg_castle)) {
mes "[ Guide ]";
mes "this command can only be used on ^FF0000 Towns. ^000000";
end;
}
else {
mes "[ Guide ]";
mes "Hello, " + strcharinfo(0) + "!";
mes "How may I help you?!";
Main:
i had this script where in you type @guide custom command
but i recieving error and debug on console how to fix it?
Error buildin_strcharinfo fatal error player not attached
debug: function: strcharinfo (1 parameter):
debug: Data: number value=3
debug source (NPC): guide(invisible/not on a map)
debug source (NPC): guide(invisible/not on a map)
Link to comment
Share on other sites
1 answer 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.