summaryrefslogtreecommitdiff
path: root/npc/001-1/enora.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/001-1/enora.txt')
-rw-r--r--npc/001-1/enora.txt16
1 files changed, 10 insertions, 6 deletions
diff --git a/npc/001-1/enora.txt b/npc/001-1/enora.txt
index 45e6e551..140f51b0 100644
--- a/npc/001-1/enora.txt
+++ b/npc/001-1/enora.txt
@@ -123,7 +123,7 @@
.@zeny_reward = getarg(1);
getexp .@exp_reward, 0;
- Zeny = Zeny + .@zeny_reward;
+ Zeny += .@zeny_reward;
narrator S_LAST_NEXT,
l("You received @@ EXP and @@ E.", .@exp_reward, .@zeny_reward);
@@ -300,6 +300,8 @@
l("Only one more Fluffy to kill and it's done!");
return;
+ } else if (getq(ArtisQuests_Enora) == 10) {
+ inventoryplace TreasureKey, 1;
}
speech S_FIRST_BLANK_LINE | S_LAST_NEXT,
@@ -314,6 +316,10 @@
{
setq ArtisQuests_Enora, 11;
enora_reward(140, 500);
+ getitem TreasureKey, 1;
+ mesn;
+ mesq l("Also, here is a %s. If you find a Treasure Chest somewhere, you can open it with this!", getitemlink(TreasureKey));
+ next;
}
return;
@@ -440,10 +446,7 @@ OnInit:
end;
}
-001-1,0,0,0 script Mobs#001-1 NPC_HIDDEN,{
- end;
-
-OnNPCKillEvent:
+function script EnoraKills {
if (getq(ArtisQuests_Enora) == 10
&& killedrid == Fluffy
&& strcharinfo(PC_MAP) == "001-1"
@@ -451,5 +454,6 @@ OnNPCKillEvent:
{
setq(ArtisQuests_Enora, 10, getq2(ArtisQuests_Enora) + 1);
}
- end;
+ return;
}
+