diff options
Diffstat (limited to 'npc/functions/clear_vars.txt')
-rwxr-xr-x | npc/functions/clear_vars.txt | 107 |
1 files changed, 0 insertions, 107 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt index 76ab7bf7..35c05a4c 100755 --- a/npc/functions/clear_vars.txt +++ b/npc/functions/clear_vars.txt @@ -75,110 +75,3 @@ L_EventClear: return; } -function script mapexit { - debugmes "TRYING TO MAPEXIT IS DEPRECATED"; - return; -} - -function script npcaction { - debugmes "Deprecated unitaction (did you mean npcsit; or whatever?)"; - return; -} - -function script gmlog { - logmes(getarg(0), LOGMES_ATCOMMAND); - return; -} - -function script getx { - getmapxy(.@m$, .@x, .@y, 0); - return .@x; -} - -function script gety { - getmapxy(.@m$, .@x, .@y, 0); - return .@y; -} - -function script getnpcx { - return .x; -} - -function script getnpcy { - return .y; -} - -function script title { - setnpcdialogtitle getarg(0); - return; -} - -function script camera { - if (getarg(0, "") != "") - setcamnpc getarg(0); - else - restorecam; - return; -} - -function script mapmask { - setmapmask getmapname(), getarg(0); - return; -} - -function script getmask { - return getmapmask(getmapname()); -} - -// isin( map, x1, y1, {[x2, y2][radius]} ) -function script isin { - if (getmapxy(.@mapName$, .@xpos, .@ypos, 0) != 0) - return false; - if (.@mapName$ != getarg(0)) - return false; - - if (getarg(4,-1) < 0) { - // Radius Based - if (.@xpos >= getarg(1)-getarg(3) && .@xpos <= getarg(1)+getarg(3) && .@ypos >= getarg(2)-getarg(3) && .@ypos <= getarg(2)+getarg(3)) - return true; - } else { - // Coordinate based - if (.@xpos >= getarg(1) && .@xpos <= getarg(3) && .@ypos >= getarg(2) && .@ypos <= getarg(4)) - return true; - } - return false; -} - -// isat( map, x, y ) -function script isat { - return isin(getarg(0), getarg(1), getarg(2), 0); -} - -function script mesn { - if (getargcount() > 0) { - .@s$ = "[" + getarg(0) + "]"; - } else { - .@s$ = "[" + strnpcinfo(1) + "]"; - } - mes .@s$; - return; -} - -// maptimer("<map>", <tick>, "<npc>::<event>") -function script maptimer { - .@c = getunits(BL_PC, .@players, false, getarg(0)); - for (.@i = 0; .@i < .@c; .@i++) { - addtimer(getarg(1), getarg(2), .@players[.@i]); - } - return .@i; -} - -// areatimer("<map>", <x1>, <y1>, <x2>, <y2>, <tick>, "<npc>::<event>") -function script areatimer { - .@c = getunits(BL_PC, .@players, false, getarg(0), getarg(1), getarg(2), getarg(3), getarg(4)); - for (.@i = 0; .@i < .@c; .@i++) { - addtimer(getarg(5), getarg(6), .@players[.@i]); - } - return .@i; -} - |