summaryrefslogtreecommitdiff
path: root/npc/008-0
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/008-0
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/008-0')
-rw-r--r--npc/008-0/master.txt32
1 files changed, 26 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;