Created
January 6, 2017 23:32
-
-
Save cydh/83064781c8f694d324104bb970c2c601 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
- 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