summaryrefslogtreecommitdiff
path: root/world/map/npc/029-2/barrels_config.txt
diff options
context:
space:
mode:
authorWushin <pasekei@gmail.com>2015-04-30 00:19:47 -0500
committerWushin <pasekei@gmail.com>2015-04-30 00:19:47 -0500
commita15b94def3cc24a2ee8b1401a92d53a8aaa3ca86 (patch)
treeef694cb7f064506246778e0d3253b262ab9c94dc /world/map/npc/029-2/barrels_config.txt
parent86cc243c069b90c3eb47df1faede506822634f4a (diff)
parentb1ff0f2cbbf03cbda01945537dfd65f6cc6f4e53 (diff)
downloadserverdata-a15b94def3cc24a2ee8b1401a92d53a8aaa3ca86.tar.gz
serverdata-a15b94def3cc24a2ee8b1401a92d53a8aaa3ca86.tar.bz2
serverdata-a15b94def3cc24a2ee8b1401a92d53a8aaa3ca86.tar.xz
serverdata-a15b94def3cc24a2ee8b1401a92d53a8aaa3ca86.zip
Merge pull request #337 from wushin/quest-log-with-bits
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;