summaryrefslogtreecommitdiff
path: root/npc/functions/mouboofunc.txt
diff options
context:
space:
mode:
authorgumi <mekolat@users.noreply.github.com>2017-10-11 19:02:11 -0400
committergumi <mekolat@users.noreply.github.com>2017-10-11 19:02:20 -0400
commit6662b6f305976881c3e675241c41be7731b65aa5 (patch)
treea8ecaa074cf67cb929f4de6ed62ef7c4b49c46d1 /npc/functions/mouboofunc.txt
parent03049799efdc103fdd74e77161ed6a907acb7dde (diff)
downloadserverdata-6662b6f305976881c3e675241c41be7731b65aa5.tar.gz
serverdata-6662b6f305976881c3e675241c41be7731b65aa5.tar.bz2
serverdata-6662b6f305976881c3e675241c41be7731b65aa5.tar.xz
serverdata-6662b6f305976881c3e675241c41be7731b65aa5.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.txt14
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;
}