From c2c6d03c9a39cefd093f124472e049127b1c2fd6 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 30 Oct 2018 22:15:36 -0200 Subject: Monster King walks --- db/constants.conf | 2 ++ npc/019-3/guards.txt | 4 ++-- npc/023-2/_import.txt | 1 + npc/023-2/mk.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 npc/023-2/mk.txt diff --git a/db/constants.conf b/db/constants.conf index 658c5d36a..f9d627f5c 100644 --- a/db/constants.conf +++ b/db/constants.conf @@ -4059,6 +4059,8 @@ constants_db: { NPC_PET_TAMER: 456 NPC_YETI: 457 + NPC_MONSTERKING: 500 + NPC_SOUL_NORMAL: 700 NPC_SOUL_DESERT: 701 NPC_SOUL_SNOW: 702 diff --git a/npc/019-3/guards.txt b/npc/019-3/guards.txt index 385426ec9..e2a18771f 100644 --- a/npc/019-3/guards.txt +++ b/npc/019-3/guards.txt @@ -19,8 +19,8 @@ .@q2=getq2(Q_NivalisLibday); .@q3=getq3(Q_NivalisLibday); - // Calculate score (You have 3 minutes) - .@score=0; + // Calculate score (You have 3 minutes. You get a single point for finishing.) + .@score=1; .@time=gettimetick(2); .@score+=max(180-(.@time-.@q3), 0)/5; 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-60-g2f50