summaryrefslogtreecommitdiff
path: root/npc/013-3/barrier.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-09 13:33:57 -0300
commitcf18ce071c79ae37e14ea38943e0b1d88da70a7b (patch)
treef9159c9b60b3018300dd22ffba0d797bc5e828e5 /npc/013-3/barrier.txt
parent8a4bf716002a017de77fe7df301ef8e4aaf00a2e (diff)
downloadserverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.gz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.bz2
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.tar.xz
serverdata-cf18ce071c79ae37e14ea38943e0b1d88da70a7b.zip
Override
Diffstat (limited to 'npc/013-3/barrier.txt')
-rwxr-xr-xnpc/013-3/barrier.txt27
1 files changed, 27 insertions, 0 deletions
diff --git a/npc/013-3/barrier.txt b/npc/013-3/barrier.txt
new file mode 100755
index 00000000..aa8a1918
--- /dev/null
+++ b/npc/013-3/barrier.txt
@@ -0,0 +1,27 @@
+
+013-3,71,21,0 script #DemonMineBarrier1#_M NPC32767,1,0,{
+ @state = ((QUEST_Hurnscald & NIBBLE_2_MASK) >> NIBBLE_2_SHIFT);
+
+ if (@state >= 2) goto L_End;
+ if (@state == 1 && countitem("Soul") >= 1) goto L_Has_Soul;
+
+ message strcharinfo(0), "Barrier : ##3A barrier around the opening pushes you back as you approach.";
+
+ warp "013-3", 71, 25;
+ goto L_End;
+
+L_Has_Soul:
+ message strcharinfo(0), "Barrier : ##3The barrier around the opening allows you passage.";
+ @state = 2;
+ callsub S_Update_Mask;
+ delitem "Soul", 1;
+ goto L_End;
+
+L_End:
+ @state = 0;
+ end;
+
+S_Update_Mask:
+ QUEST_Hurnscald = (QUEST_Hurnscald & ~(NIBBLE_2_MASK)) | (@state << NIBBLE_2_SHIFT);
+ return;
+}