summaryrefslogtreecommitdiff
path: root/world/map/npc/027-3
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2014-04-11 14:32:22 -0500
committerwushin <pasekei@gmail.com>2014-04-15 20:26:28 -0500
commit47f790759ea3ea56d31e000bc3f3b7f142ee802d (patch)
tree369dc32bddb447076c5cf9298f6624366aa03ce2 /world/map/npc/027-3
parent6e9543af67c5e027269bfc32e9c6f36111f3832a (diff)
downloadclassic-serverdata-47f790759ea3ea56d31e000bc3f3b7f142ee802d.tar.gz
classic-serverdata-47f790759ea3ea56d31e000bc3f3b7f142ee802d.tar.bz2
classic-serverdata-47f790759ea3ea56d31e000bc3f3b7f142ee802d.tar.xz
classic-serverdata-47f790759ea3ea56d31e000bc3f3b7f142ee802d.zip
Npcs remaining script fixes
Npcs changed for travel Npcs changed for new maps Npcs changed for basic crypts
Diffstat (limited to 'world/map/npc/027-3')
-rw-r--r--world/map/npc/027-3/casket_traps.txt80
-rw-r--r--world/map/npc/027-3/general_krukan_door.txt19
-rw-r--r--world/map/npc/027-3/locked_doors.txt128
-rw-r--r--world/map/npc/027-3/monsters.txt71
4 files changed, 298 insertions, 0 deletions
diff --git a/world/map/npc/027-3/casket_traps.txt b/world/map/npc/027-3/casket_traps.txt
new file mode 100644
index 00000000..7b8a1e70
--- /dev/null
+++ b/world/map/npc/027-3/casket_traps.txt
@@ -0,0 +1,80 @@
+027-3.gat,32,96,0|script|#casket1|35,1,1
+{
+ end;
+
+OnTouch:
+ percentheal -10, 0;
+ specialeffect 301;
+ specialeffect 302;
+ end;
+}
+027-3.gat,38,86,0|script|#casket2|35,1,1
+{
+ end;
+
+OnTouch:
+ percentheal -10, 0;
+ specialeffect 301;
+ specialeffect 302;
+ end;
+}
+027-3.gat,46,76,0|script|#casket3|35,1,1
+{
+ end;
+
+OnTouch:
+ percentheal -10, 0;
+ specialeffect 301;
+ specialeffect 302;
+ end;
+}
+027-3.gat,38,57,0|script|#casket4|35,1,1
+{
+ end;
+
+OnTouch:
+ percentheal -10, 0;
+ specialeffect 301;
+ specialeffect 302;
+ end;
+}
+027-3.gat,22,44,0|script|#casket5|35,1,1
+{
+ end;
+
+OnTouch:
+ percentheal -10, 0;
+ specialeffect 301;
+ specialeffect 302;
+ end;
+}
+027-3.gat,48,43,0|script|#casket6|35,1,1
+{
+ end;
+
+OnTouch:
+ percentheal -10, 0;
+ specialeffect 301;
+ specialeffect 302;
+ end;
+}
+027-3.gat,86,30,0|script|#casket7|35,1,1
+{
+ end;
+
+OnTouch:
+ percentheal -10, 0;
+ specialeffect 301;
+ specialeffect 302;
+ end;
+}
+027-3.gat,108,45,0|script|#casket8|35,1,1
+{
+ end;
+
+OnTouch:
+ percentheal -10, 0;
+ specialeffect 301;
+ specialeffect 302;
+ end;
+}
diff --git a/world/map/npc/027-3/general_krukan_door.txt b/world/map/npc/027-3/general_krukan_door.txt
new file mode 100644
index 00000000..86a6342f
--- /dev/null
+++ b/world/map/npc/027-3/general_krukan_door.txt
@@ -0,0 +1,19 @@
+// Mini-Boss
+// General Krukun
+
+027-3.gat,82,88,0|script|#GeneralDoor1|35,1,0
+{
+ if ( (countitem("CryptKey") < 10) && ($@CRYPT_FIGHT1 != 0) )
+ goto L_NoKeys;
+
+ delitem "CryptKey", 10;
+ warp "027-6.gat",39,60;
+ goto L_Close;
+
+L_NoKeys:
+ message strcharinfo(0), "This door is locked.";
+ end;
+
+L_Close:
+ close;
+}
diff --git a/world/map/npc/027-3/locked_doors.txt b/world/map/npc/027-3/locked_doors.txt
new file mode 100644
index 00000000..b2ec8779
--- /dev/null
+++ b/world/map/npc/027-3/locked_doors.txt
@@ -0,0 +1,128 @@
+// Locked Doors
+
+027-3.gat,22,29,0|script|#CLockDoor1|35,0,0
+{
+ if (countitem("CryptKey") < 5)
+ goto L_NoKeys;
+ mes "Open the Locked Door?";
+ menu
+ "Yes.", L_Open,
+ "No.", L_Close;
+
+L_Open:
+ delitem "CryptKey", 5;
+ warp "027-3.gat",22,26;
+ goto L_Close;
+
+L_NoKeys:
+ message strcharinfo(0), "This door is locked.";
+ end;
+
+L_Close:
+ close;
+}
+
+027-3.gat,22,27,0|script|#CInsideDoor1|35,0,0
+{
+ mes "Open the Door?";
+ menu
+ "Yes.", L_Open,
+ "No.", L_Close;
+
+L_Open:
+ warp "027-3.gat",22,30;
+ message strcharinfo(0), "This door slams shut and locks itself behind you.";
+ goto L_Close;
+
+L_Close:
+ close;
+}
+
+027-3.gat,37,29,0|script|#CLockDoor2|35,0,0
+{
+ if (countitem("CryptKey") < 5)
+ goto L_NoKeys;
+ mes "Open the Locked Door?";
+ menu
+ "Yes.", L_Open,
+ "No.", L_Close;
+
+L_Open:
+ delitem "CryptKey", 5;
+ warp "027-3.gat",37,26;
+ goto L_Close;
+
+L_NoKeys:
+ message strcharinfo(0), "This door is locked.";
+ end;
+
+L_Close:
+ close;
+}
+
+027-3.gat,37,27,0|script|#CInsideDoor2|35,0,0
+{
+ mes "Open the Door?";
+ menu
+ "Yes.", L_Open,
+ "No.", L_Close;
+
+L_Open:
+ warp "027-3.gat",37,30;
+ message strcharinfo(0), "This door slams shut and locks itself behind you.";
+ goto L_Close;
+
+L_Close:
+ close;
+}
+
+027-3.gat,128,29,0|script|#CLockDoor3|35,0,0
+{
+ if (countitem("CryptKey") < 5)
+ goto L_NoKeys;
+ mes "Open the Locked Door?";
+ menu
+ "Yes.", L_Open,
+ "No.", L_Close;
+
+L_Open:
+ delitem "CryptKey", 5;
+ warp "027-3.gat",128,26;
+ goto L_Close;
+
+L_NoKeys:
+ message strcharinfo(0), "This door is locked.";
+ end;
+
+L_Close:
+ close;
+}
+
+027-3.gat,128,27,0|script|#CInsideDoor3|35,0,0
+{
+ mes "Open the Door?";
+ menu
+ "Yes.", L_Open,
+ "No.", L_Close;
+
+L_Open:
+ warp "027-3.gat",128,30;
+ message strcharinfo(0), "This door slams shut and locks itself behind you.";
+ goto L_Close;
+
+L_Close:
+ close;
+}
+
+027-3.gat,22,22,0|script|Crypt#1|35,0,0
+{
+ // Coords X: 117,104,110,118;
+ // Coords Y: 53, 87, 53,87;
+ end;
+}
+027-3.gat,35,22,0|script|Crypt#2|35,0,0
+{
+ // Coords X: 105,118,118,122;
+ // Coords Y: 58, 77, 72, 58
+ end;
+}
diff --git a/world/map/npc/027-3/monsters.txt b/world/map/npc/027-3/monsters.txt
new file mode 100644
index 00000000..7aaa7fd5
--- /dev/null
+++ b/world/map/npc/027-3/monsters.txt
@@ -0,0 +1,71 @@
+// 027-3 Graveyard zombies and fallens
+// they need to be in an extra file because of the crying child quest
+
+027-3.gat,21,76,51,100|monster|Zombie|1036,2,300000,120000,specialMob027-3::On1036
+027-3.gat,21,30,51,63|monster|Zombie|1036,2,200000,10000,specialMob027-3::On1036
+027-3.gat,67,29,129,64|monster|Zombie|1036,3,140000,30000,specialMob027-3::On1036
+027-3.gat,101,65,128,93|monster|Fallen|1045,3,120000,30000,specialMob027-3::On1045
+
+027-3.gat,0,0,0|script|specialMob027-3|-1,
+{
+ end;
+
+On1036:
+ set @mobID, 1036;
+ callsub S_MOBCOUNT_ZOMBIES;
+ callfunc "MobPoints";
+ end;
+
+On1045:
+ set @mobID, 1045;
+ callsub S_MOBCOUNT_FALLENS;
+ callfunc "MobPoints";
+ end;
+
+S_MOBCOUNT_ZOMBIES:
+
+ set @Graveyard_Inn_MASK, NIBBLE_2_MASK;
+ set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT;
+
+ set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT);
+
+ if (@state != 1)
+ goto L_Return;
+ set @ring, @ring + 1;
+ if (@ring < 10)
+ goto L_Return;
+ if (rand(8) != 0)
+ goto L_Return;
+ message strcharinfo(0), "You found a ring hidden in the zombie's rotten rags. Maybe this is what Aldred was looking for...";
+ set @state, 2;
+ callsub S_Update_Mask;
+ return;
+
+S_MOBCOUNT_FALLENS:
+
+ set @Graveyard_Inn_MASK, NIBBLE_2_MASK;
+ set @Graveyard_Inn_SHIFT, NIBBLE_2_SHIFT;
+
+ set @state, ((QUEST_Graveyard_Inn & @Graveyard_Inn_MASK) >> @Graveyard_Inn_SHIFT);
+
+ if (@state != 1)
+ goto L_Return;
+ set @ring, @ring + 1;
+ if (@ring < 10)
+ goto L_Return;
+ if (rand(8) != 0)
+ goto L_Return;
+ message strcharinfo(0), "You found a ring inside the fallen's broken helmet. Maybe this is what Aldred was looking for...";
+ set @state, 2;
+ callsub S_Update_Mask;
+ return;
+
+L_Return:
+ return;
+
+S_Update_Mask:
+ set QUEST_Graveyard_Inn,
+ (QUEST_Graveyard_Inn & ~(@Graveyard_Inn_MASK))
+ | (@state << @Graveyard_Inn_SHIFT);
+ return;
+}