From c2c6d03c9a39cefd093f124472e049127b1c2fd6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 30 Oct 2018 22:15:36 -0200 Subject: Monster King walks --- npc/023-2/_import.txt | 1 + npc/023-2/mk.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 npc/023-2/mk.txt (limited to 'npc/023-2') diff --git a/npc/023-2/_import.txt b/npc/023-2/_import.txt index 6f6f6f77a..88b53a1d4 100644 --- a/npc/023-2/_import.txt +++ b/npc/023-2/_import.txt @@ -3,3 +3,4 @@ "npc/023-2/_mobs.txt", "npc/023-2/_warps.txt", "npc/023-2/lightbringer.txt", +"npc/023-2/mk.txt", diff --git a/npc/023-2/mk.txt b/npc/023-2/mk.txt new file mode 100644 index 000000000..c3007e185 --- /dev/null +++ b/npc/023-2/mk.txt @@ -0,0 +1,42 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// Description: +// Nivalis Liberation Day + +023-2,121,35,0 script The Monster King#NLib NPC_MONSTERKING,{ + end; + +OnInit: + .sex = G_MALE; + .distance = 5; + +OnHour00: + if (!$NLIB_DAY) { + disablenpc .name$; + end; + } + switch ($NLIB_DAY) { + case 1: + movenpc(.name$, 121, 35, DIR_WEST); break; + case 2: + movenpc(.name$, 105, 37, DIR_NORTH); break; + case 3: + movenpc(.name$, 105, 51, DIR_SOUTH); break; + case 4: + movenpc(.name$, 102, 63, DIR_WEST); break; + case 5: + movenpc(.name$, 81, 59, DIR_EAST); break; + case 6: + movenpc(.name$, 76, 48, DIR_WEST); break; + case 7: + movenpc(.name$, 53, 53, DIR_SOUTH); break; + case 8: + movenpc(.name$, 36, 99, DIR_SOUTH); break; + default: + channelmes("#world", "A bug happened: Monster King # Nivalis Liberation Day - Value Out of Range."); disablenpc .name$; break; + } + + end; +} + -- cgit v1.2.3-70-g09d2