From 40f92e35f93d6b773766a93bd7c8c5513b79ab58 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 11 Mar 2018 12:50:47 -0300 Subject: Mana Stone basic implementation --- db/constants.conf | 1 + npc/009-5/_import.txt | 1 + npc/009-5/manastone.txt | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 npc/009-5/manastone.txt diff --git a/db/constants.conf b/db/constants.conf index a8cbf6608..f15ba78ce 100644 --- a/db/constants.conf +++ b/db/constants.conf @@ -3974,6 +3974,7 @@ constants_db: { NPC_SOUL_OLD: 705 NPC_SOUL_MOSS: 706 NPC_SOUL_CURSED: 707 + NPC_MANA_STONE: 708 NPC_TEST1: 800 NPC_PLAYER: 801 diff --git a/npc/009-5/_import.txt b/npc/009-5/_import.txt index 431712f5d..a589c9d37 100644 --- a/npc/009-5/_import.txt +++ b/npc/009-5/_import.txt @@ -2,3 +2,4 @@ // This file is generated automatically. All manually added changes will be removed when running the Converter. "npc/009-5/_mobs.txt", "npc/009-5/_warps.txt", +"npc/009-5/manastone.txt", diff --git a/npc/009-5/manastone.txt b/npc/009-5/manastone.txt new file mode 100644 index 000000000..55fd811c1 --- /dev/null +++ b/npc/009-5/manastone.txt @@ -0,0 +1,52 @@ +// TMW2 Script +// Author: +// Jesusalva +// Description: +// TODO + +009-5,0,0,0 script Mana Stone NPC_MANA_STONE,{ + + if (BaseLevel < 40) goto L_NotWorthy; + hello; + end; + +L_NotWorthy: + percentheal -70+BaseLevel, -100+BaseLevel; + npctalk3 "You are not worthy!"; + end; + +OnInit: + movenpc .name$, rand(200), rand(200); + .sex = G_OTHER; + .distance = 5; + end; + +OnClock0030: +OnClock0120: +OnClock0210: +OnClock0300: +OnClock0450: +OnClock0540: +OnClock0630: +OnClock0720: +OnClock0810: +OnClock0900: +OnClock1050: +OnClock1140: +OnClock1230: +OnClock1320: +OnClock1410: +OnClock1500: +OnClock1650: +OnClock1740: +OnClock1830: +OnClock1920: +OnClock2010: +OnClock2100: +OnClock2250: +OnClock2340: + movenpc .name$, rand(200), rand(200); + npctalk l("Those who are worthy, may get my magic. For the others, death awaits!"); + end; + +} -- cgit v1.2.3-60-g2f50