diff options
author | gumi <mekolat@users.noreply.github.com> | 2017-10-11 19:02:11 -0400 |
---|---|---|
committer | gumi <mekolat@users.noreply.github.com> | 2017-10-11 19:02:20 -0400 |
commit | 6662b6f305976881c3e675241c41be7731b65aa5 (patch) | |
tree | a8ecaa074cf67cb929f4de6ed62ef7c4b49c46d1 /npc/functions/mouboofunc.txt | |
parent | 03049799efdc103fdd74e77161ed6a907acb7dde (diff) | |
download | serverdata-s20171023.tar.gz serverdata-s20171023.tar.bz2 serverdata-s20171023.tar.xz serverdata-s20171023.zip |
what's up with this crazy syntax?s20171023
I blame Reid
Diffstat (limited to 'npc/functions/mouboofunc.txt')
-rw-r--r-- | npc/functions/mouboofunc.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/npc/functions/mouboofunc.txt b/npc/functions/mouboofunc.txt index c0f7d96b..6129c083 100644 --- a/npc/functions/mouboofunc.txt +++ b/npc/functions/mouboofunc.txt @@ -5,7 +5,7 @@ // Various scripts used in walking mouboo NPCs. function script moubootalk { - switch (rand (4)) + switch (rand(4)) { case 0: npctalkonce(l("Moooooo!")); @@ -31,13 +31,13 @@ function script mouboocheckxy { "Taree"; for (.@size = 0; .@size < getarraysize(.nearnpc$); .@size++) { - if (strcmp (.name$, .nearnpc$[.@size]) == 0) + if (strcmp(.name$, .nearnpc$[.@size]) == 0) { continue; } - .@npc_x = getvariableofnpc (.x, .nearnpc$[.@size]); - .@npc_y = getvariableofnpc (.y, .nearnpc$[.@size]); + .@npc_x = getvariableofnpc(.x, .nearnpc$[.@size]); + .@npc_y = getvariableofnpc(.y, .nearnpc$[.@size]); if (.@npc_x == .x && .@npc_y == .y) { @@ -49,13 +49,13 @@ function script mouboocheckxy { } function script moubootimer { - if (mouboocheckxy () && !isunitwalking ()) + if (mouboocheckxy() && !isunitwalking()) { movetonextpoint; } - else if (rand (0,6) == 5) + else if (rand(0,6) == 5) { - if (!isunitwalking ()) + if (!isunitwalking()) { movetonextpoint; } |