diff options
author | Reid <reidyaro@gmail.com> | 2016-02-13 18:05:23 +0100 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2016-02-13 18:05:23 +0100 |
commit | 5689ae74b9d0ca60b714c076b244257d89f22e0f (patch) | |
tree | 7e63ff39a449cf94b0afda3a935de35b88d829b5 /npc/functions | |
parent | 98bd50ebfbff30d285e69a900245557af8c4f0c7 (diff) | |
download | serverdata-5689ae74b9d0ca60b714c076b244257d89f22e0f.tar.gz serverdata-5689ae74b9d0ca60b714c076b244257d89f22e0f.tar.bz2 serverdata-5689ae74b9d0ca60b714c076b244257d89f22e0f.tar.xz serverdata-5689ae74b9d0ca60b714c076b244257d89f22e0f.zip |
Clean up and remove some useless space and newline.
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/doors.txt | 2 | ||||
-rw-r--r-- | npc/functions/fishing.txt | 1 | ||||
-rw-r--r-- | npc/functions/main.txt | 4 | ||||
-rw-r--r-- | npc/functions/npcmovegraph.txt | 11 |
4 files changed, 0 insertions, 18 deletions
diff --git a/npc/functions/doors.txt b/npc/functions/doors.txt index 8b49bf0b..b8171a9d 100644 --- a/npc/functions/doors.txt +++ b/npc/functions/doors.txt @@ -39,7 +39,6 @@ function script doorInit { end; } - function script open_door { .@door$ = getarg(0); setnpcdir.@door$, 2; @@ -49,7 +48,6 @@ function script open_door { return 0; } - function script close_door { .@door$ = getarg(0); setnpcdir .@door$, 4; diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt index 7ff60c30..e3289daf 100644 --- a/npc/functions/fishing.txt +++ b/npc/functions/fishing.txt @@ -4,7 +4,6 @@ // Description: // Fishing functions. - function script fishing { .@wait_time_min = 5000; diff --git a/npc/functions/main.txt b/npc/functions/main.txt index a9edd4a1..3303658c 100644 --- a/npc/functions/main.txt +++ b/npc/functions/main.txt @@ -76,7 +76,6 @@ function script strip { return substr(.@s$, .@start, .@end); } - // Function to show narrator text. Accepts string args. // If first arg is a number N, then it represents bit flags. // Bit flags : @@ -113,7 +112,6 @@ function script narrator { return; } - // Function to show NPC speech. Accepts string args. // If first arg is a number N, then it represents bit flags. // Bit flags : @@ -151,7 +149,6 @@ function script speech { return; } - // Show debug message if .debug variable of NPC is set to 1 function script npcdebug { if (getvariableofnpc(.debug, strnpcinfo(3))) @@ -159,7 +156,6 @@ function script npcdebug { return; } - function script abs { .@n = getarg(0); return .@n >= 0 ? .@n : -.@n; diff --git a/npc/functions/npcmovegraph.txt b/npc/functions/npcmovegraph.txt index a19e2df5..76b9a28c 100644 --- a/npc/functions/npcmovegraph.txt +++ b/npc/functions/npcmovegraph.txt @@ -6,7 +6,6 @@ // Variables: // none - function script initmovegraph { deletearray getvariableofnpc(.movegraphcmd$, strnpcinfo(3)); deletearray getvariableofnpc(.movegraphlabels$, strnpcinfo(3)); @@ -33,7 +32,6 @@ function script initmovegraph { return; } - function script findmovegraphlabel { if (!getargcount()) { @@ -57,7 +55,6 @@ function script findmovegraphlabel { return -1; } - /* setmovegraphcmd(fromPositionLabel,toPositionLabel[,moveChanceWeight[,moveFlags]],postCommand, ...); * This function manipulates NPC moving graph. Before calling it, make sure * `initmovegraph' was called. The function accepts 3-5 parameters (many times): @@ -91,7 +88,6 @@ function script setmovegraphcmd { return; } - function script execmovecmd { explode(.@cmd$, getarg(0), " "); @@ -200,7 +196,6 @@ function script execmovecmd { return 0; } - function script getnextmovecmd { .@cmds$ = getvariableofnpc(.nextcmd$, strnpcinfo(3)); .@firstCmd$ = .@cmds$; @@ -216,7 +211,6 @@ function script getnextmovecmd { return strip(.@firstCmd$); } - // getrandompoint(x1,y1,x2,y2) // -- Get a random walkable point within a map rectangle // x1, y1 -- top-left corner of rectangle @@ -274,7 +268,6 @@ L_Found: return 0; } - function script movetonextpoint { .@wait = getvariableofnpc(.waitticks, strnpcinfo(3)); if (.@wait > 0) @@ -360,7 +353,6 @@ function script movetonextpoint { return; } - // initial actions for npc when using move graphs. // function can accept 2 arguments: // 1: action sequence, for example "speed 200; dir 4". Default is "moveon" @@ -380,7 +372,6 @@ function script firstmove { return; } - function script npc_pausemove { stopnpctimer; .@move_after = 0; @@ -396,7 +387,6 @@ function script npc_pausemove { return 0; } - function script npc_resumemove { startnpctimer; @@ -410,7 +400,6 @@ function script npc_resumemove { return 0; } - // npc_turntoxy(x,y) // turn npc toward an object at position (x,y) function script npc_turntoxy { |