summaryrefslogtreecommitdiff
path: root/npc/functions/mouboofunc.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-05-30 19:53:21 -0300
committerJesusaves <cpntb1@ymail.com>2018-05-30 19:53:21 -0300
commit359aa55cf8dc0e1484e0153b46e0f6beccf5d15c (patch)
treeb2f49ce430afdca113eb181c3991a1e347344311 /npc/functions/mouboofunc.txt
parentb732d581cebcc97f5a831cf3775525942acc7020 (diff)
downloadserverdata-359aa55cf8dc0e1484e0153b46e0f6beccf5d15c.tar.gz
serverdata-359aa55cf8dc0e1484e0153b46e0f6beccf5d15c.tar.bz2
serverdata-359aa55cf8dc0e1484e0153b46e0f6beccf5d15c.tar.xz
serverdata-359aa55cf8dc0e1484e0153b46e0f6beccf5d15c.zip
Delete various unused functions, and unify random talk in a single script file.
Diffstat (limited to 'npc/functions/mouboofunc.txt')
-rw-r--r--npc/functions/mouboofunc.txt89
1 files changed, 0 insertions, 89 deletions
diff --git a/npc/functions/mouboofunc.txt b/npc/functions/mouboofunc.txt
deleted file mode 100644
index 6129c083e..000000000
--- a/npc/functions/mouboofunc.txt
+++ /dev/null
@@ -1,89 +0,0 @@
-// Evol functions.
-// Author:
-// Reid
-// Description:
-// Various scripts used in walking mouboo NPCs.
-
-function script moubootalk {
- switch (rand(4))
- {
- case 0:
- npctalkonce(l("Moooooo!"));
- break;
- case 1:
- npctalkonce(l("Moo!"));
- break;
- case 2:
- npctalkonce(l("Moooooooooooo!"));
- break;
- case 3:
- npctalkonce(l("Moooo!"));
- break;
- }
- return;
-}
-
-function script mouboocheckxy {
- setarray .nearnpc$[0], "Mouboo#Artis0",
- "Mouboo#Artis1",
- "Mouboo#Artis2",
- "Mouboo#Artis3",
- "Taree";
- for (.@size = 0; .@size < getarraysize(.nearnpc$); .@size++)
- {
- if (strcmp(.name$, .nearnpc$[.@size]) == 0)
- {
- continue;
- }
-
- .@npc_x = getvariableofnpc(.x, .nearnpc$[.@size]);
- .@npc_y = getvariableofnpc(.y, .nearnpc$[.@size]);
-
- if (.@npc_x == .x && .@npc_y == .y)
- {
- return 1;
- }
- }
-
- return 0;
-}
-
-function script moubootimer {
- if (mouboocheckxy() && !isunitwalking())
- {
- movetonextpoint;
- }
- else if (rand(0,6) == 5)
- {
- if (!isunitwalking())
- {
- movetonextpoint;
- }
- }
- initnpctimer;
- end;
-}
-
-function script mouboograph {
- initmovegraph "down_pos", 66, 79, 75, 86,
- "left_pos", 66, 79, 75, 86,
- "up_pos", 66, 79, 75, 86,
- "right_pos", 66, 79, 75, 86;
-
- setmovegraphcmd "down_pos", "left_pos", 1, "dir 2",
- "down_pos", "up_pos", 1, "dir 4",
- "down_pos", "right_pos", 1, "dir 6",
- "left_pos", "down_pos", 1, "dir 0",
- "left_pos", "up_pos", 1, "dir 4",
- "left_pos", "right_pos", 1, "dir 6",
- "up_pos", "down_pos", 1, "dir 0",
- "up_pos", "left_pos", 1, "dir 2",
- "up_pos", "right_pos", 1, "dir 6",
- "right_pos", "down_pos", 1, "dir 0",
- "right_pos", "left_pos", 1, "dir 2",
- "right_pos", "up_pos", 1, "dir 4";
-
- firstmove "wait 2", "down_pos";
- initnpctimer;
- end;
-}