summaryrefslogtreecommitdiff
path: root/world/map/npc/029-2/barrels_config.txt
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2015-04-21 13:42:04 -0500
committerwushin <pasekei@gmail.com>2015-04-25 23:28:57 -0500
commitb1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53 (patch)
tree3607a90959888954db09b369588bbc5bc5687499 /world/map/npc/029-2/barrels_config.txt
parentc93710edb93f00d42119adbc332ab4152ead4341 (diff)
downloadserverdata-b1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53.tar.gz
serverdata-b1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53.tar.bz2
serverdata-b1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53.tar.xz
serverdata-b1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53.zip
Quest Log example
Diffstat (limited to 'world/map/npc/029-2/barrels_config.txt')
-rw-r--r--world/map/npc/029-2/barrels_config.txt18
1 files changed, 2 insertions, 16 deletions
diff --git a/world/map/npc/029-2/barrels_config.txt b/world/map/npc/029-2/barrels_config.txt
index 665903fb..1b83d25b 100644
--- a/world/map/npc/029-2/barrels_config.txt
+++ b/world/map/npc/029-2/barrels_config.txt
@@ -14,18 +14,6 @@ OnInit:
set $@BarrelMax, getarraysize($@BarrelBits);
end;
}
-function|script|SetBarrelMask
-{
- set STARTAREA, (STARTAREA & ~(NIBBLE_4_MASK) | (@barrel_tmp << NIBBLE_4_SHIFT));
- set @barrel_tmp, 0;
- return;
-}
-function|script|CheckBarrelQuest
-{
- callfunc "CountBarrels";
- set @barrel_quest, ((STARTAREA & NIBBLE_4_MASK) >> NIBBLE_4_SHIFT);
- return;
-}
function|script|CountBarrels
{
set @barrel_count, 0;
@@ -55,8 +43,7 @@ function|script|CheckBarrel
callfunc "PCtoNPCRange";
if (@npc_check)
goto L_Range;
- callfunc "CheckBarrelQuest";
- if (!(@barrel_quest == 2))
+ if (!(QL_ZEGAS == 2))
goto L_NoI;
if (STARTAREA & $@BarrelBits[@barrel])
goto L_Empty;
@@ -86,8 +73,7 @@ L_Empty:
L_QuestReward:
message strcharinfo(0), "You found the bug bomb.";
misceffect 33;
- set @barrel_tmp, 3;
- callfunc "SetBarrelMask";
+ set QL_ZEGAS, 3;
killmonster getmap() + "", "Barrel#0::OnMaggotDeath";
goto L_Return;