summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-07-03 02:09:15 -0300
committerJesusaves <cpntb1@ymail.com>2018-07-03 02:09:15 -0300
commitdc898d64d3dc02b9c2954eb208562e983b097300 (patch)
treeede33763e9d1f5dc65e7b3dd2e774b16ce488815 /npc
parent6bb2e255945d2bc1834003e0efe17c93e2d8f374 (diff)
downloadserverdata-dc898d64d3dc02b9c2954eb208562e983b097300.tar.gz
serverdata-dc898d64d3dc02b9c2954eb208562e983b097300.tar.bz2
serverdata-dc898d64d3dc02b9c2954eb208562e983b097300.tar.xz
serverdata-dc898d64d3dc02b9c2954eb208562e983b097300.zip
Add a draft space for First Party Dungeon, and TODOs.
I'm going to sleep now, have things to study too...
Diffstat (limited to 'npc')
-rw-r--r--npc/008-0/master.txt32
-rw-r--r--npc/008-1/_import.txt3
-rw-r--r--npc/008-1/_warps.txt3
-rw-r--r--npc/_import.txt1
4 files changed, 33 insertions, 6 deletions
diff --git a/npc/008-0/master.txt b/npc/008-0/master.txt
index 94aeb148d..be216f8d5 100644
--- a/npc/008-0/master.txt
+++ b/npc/008-0/master.txt
@@ -2,7 +2,7 @@
// Author:
// Jesusalva
// Description:
-// This NPC serves no purpose currently. She is here to make Tulimshar more crowded.
+// This NPC is a work on progress. It measures all players equal.
008-0,47,63,0 script Party Master NPC_BRGUARD_SWORD,{
mesn;
@@ -17,6 +17,7 @@
mesn;
mesq l("I protect a very dangerous dungeon, and it is so dangerous, that only parties can go in.");
next;
+ // TODO allow to go there if party leader is inside
if (strcharinfo(0) != getpartyleader(getcharid(1))) goto L_NotYou;
mesn;
mesq l("There are five floors, and they're all very dangerous. But there are riches to be found.");
@@ -52,9 +53,15 @@
// How many are logged in and here?
if (.@count_online < 3 && !$@GM_OVERRIDE) goto L_TooSmall;
+ // TODO: Query if exp sharing is enabled
+ // TODO: Instance for party
+
// Warp everyone and add timers
partytimer("008-0", 1000, "Party Master::OnStart", getcharid(1));
- warpparty("003-1", 41, 48, getcharid(1), "008-0", true);
+ warpparty("008-1", 176, 20, getcharid(1), "008-0", true);
+
+ // TODO: Monsters
+ monster("008-1", 90, 69, "Time Bonus", Scorpion, 1, "Party Master::OnAddTime");
close;
L_NotYou:
@@ -70,10 +77,23 @@ L_TooSmall:
OnStart:
@pmloop=0;
OnLoop:
- @pmloop+=1;
- if (@pmloop < 1500)
- addtimer(1000, "Party Master::OnLoop");
- close;
+ if (getmapname() ~= "008-*") {
+ @pmloop+=1;
+ if (@pmloop < 1500) {
+ addtimer(1000, "Party Master::OnLoop");
+ } else {
+ warp "008-0", 47, 64;
+ dispbottom l("You ran out of time...");
+ }
+ } else {
+ @pmloop=0;
+ }
+ end;
+
+// TODO: We must use areatimer() and grant time bonus to everyone who killed it
+OnAddTime:
+ @pmloop=60;
+ end;
OnInit:
.sex = G_MALE;
diff --git a/npc/008-1/_import.txt b/npc/008-1/_import.txt
new file mode 100644
index 000000000..804ef4a31
--- /dev/null
+++ b/npc/008-1/_import.txt
@@ -0,0 +1,3 @@
+// Map 008-1: 1st Floor - Party Dungeon
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/008-1/_warps.txt",
diff --git a/npc/008-1/_warps.txt b/npc/008-1/_warps.txt
new file mode 100644
index 000000000..9ed20493f
--- /dev/null
+++ b/npc/008-1/_warps.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 008-1: 1st Floor - Party Dungeon warps
+008-1,176,19,0 warp #008-1_176_19 0,0,008-0,47,64
diff --git a/npc/_import.txt b/npc/_import.txt
index f72bfc293..52dca225c 100644
--- a/npc/_import.txt
+++ b/npc/_import.txt
@@ -47,6 +47,7 @@
@include "npc/006-1/_import.txt"
@include "npc/007-1/_import.txt"
@include "npc/008-0/_import.txt"
+@include "npc/008-1/_import.txt"
@include "npc/009-1/_import.txt"
@include "npc/009-2/_import.txt"
@include "npc/009-3/_import.txt"