Skip to content

Instantly share code, notes, and snippets.

@cydh
Created January 6, 2017 23:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cydh/83064781c8f694d324104bb970c2c601 to your computer and use it in GitHub Desktop.
Save cydh/83064781c8f694d324104bb970c2c601 to your computer and use it in GitHub Desktop.
- script AtCommandCheck -1,{
OnCommandCheck:
.@map$ = strcharinfo(3);
if (.@atcmd_command$ == "warp") {
if (.@map$ == "prontera" || .@map$ == "izlude")
end;
useatcmd .@atcmd_command$ .@atcmd_parameters$[0];
end;
}
else if (.@atcmd_command$ == "go") {
if (.@map$ == "prontera" || .@map$ == "izlude")
end;
useatcmd .@atcmd_command$ .@atcmd_parameters$[0];
end;
}
else if (.@atcmd_command$ == "mi") {
if (.@map$ == "prontera" || .@map$ == "izlude")
end;
useatcmd .@atcmd_command$ .@atcmd_parameters$[0];
end;
}
end;
OnInit:
// List of @commands that will have restriction
bindatcmd "warp",strnpcinfo(0)+"::OnCommandCheck",0,60;
bindatcmd "go",strnpcinfo(0)+"::OnCommandCheck",0,60;
bindatcmd "mi",strnpcinfo(0)+"::OnCommandCheck",0,60;
end;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment