summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-02 09:41:18 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-02 09:41:18 -0300
commit41d379f07621dc9411412865455a33947579501b (patch)
tree90b90511544e3f90584bfa2dda826eb7ad31f5d3 /npc
parent50a657a11664992503b71eea5b8d127245e645d2 (diff)
downloadserverdata-41d379f07621dc9411412865455a33947579501b.tar.gz
serverdata-41d379f07621dc9411412865455a33947579501b.tar.bz2
serverdata-41d379f07621dc9411412865455a33947579501b.tar.xz
serverdata-41d379f07621dc9411412865455a33947579501b.zip
Arthur now gives a reward to the guild representative.
Diffstat (limited to 'npc')
-rw-r--r--npc/014-4/kamelot.txt1
-rw-r--r--npc/042-0/arthur.txt24
2 files changed, 23 insertions, 2 deletions
diff --git a/npc/014-4/kamelot.txt b/npc/014-4/kamelot.txt
index 7911f31fe..6d4e377ef 100644
--- a/npc/014-4/kamelot.txt
+++ b/npc/014-4/kamelot.txt
@@ -20,6 +20,7 @@
// 16 - Magic Seal 02 Broken
// 32 - Door opened
// 64 - Boss defeated
+ // 128 - Guild Reward Claimed
// $KAMELOT_KEYMASK [ guild_id ] = (bitmask) Keys and Lockpicks
// 1 - Treasure A (Boss Room key)
// 2 - Treasure B
diff --git a/npc/042-0/arthur.txt b/npc/042-0/arthur.txt
index f8b1a8f91..798343aeb 100644
--- a/npc/042-0/arthur.txt
+++ b/npc/042-0/arthur.txt
@@ -13,7 +13,6 @@
if (.@pos > GPOS_VICELEADER) goto L_Refusal;
if (!$KAMELOT_COOLDOWN[.@g]) goto L_Tutorial;
if ($KAMELOT_QUEST[.@g] & 1) goto L_Progress;
- // TODO: Curse lifted scene until next week
goto L_Prologue;
L_Prologue:
@@ -117,13 +116,34 @@ OnSmash:
//////////////////////////////////////////////////////////////////////////
L_Progress:
- // TODO: Victory Reward
+ if ($KAMELOT_QUEST[.@g] & 64) goto L_Reward;
npctalk l("What are you still doing here?! GO!!");
mes l("Read tutorial again?");
next;
if (askyesno() == ASK_YES) goto L_Tutorial;
close;
+L_Reward:
+ .@cn=$KAMELOT_MX[.@g]/3;
+ mesn;
+ mesq l("Thanks for vanishing the source of the curse.");
+ next;
+ mesn;
+ mesq l("Since Merlin left in an expedition with Morgan, strange things have been happening in Kamelot.");
+ next;
+ mesn;
+ mesq l("Please accept this reward from my part. And if anything else happens again, I'll leave the doors open for you and your guild.");
+ next;
+ warp "014-4", 67, 27;
+ if ($KAMELOT_QUEST[.@g] & 128)
+ close;
+ $KAMELOT_QUEST[.@g]=$KAMELOT_QUEST[.@g]|128;
+ getitem GuildCoin, .@cn;
+ guildgetexp(.@cn*1000);
+ // TODO: Make this a decent reward
+ getitembound any(SilverRing, GoldenRing), 1, 2;
+ close;
+
//////////////////////////////////////////////////////////////////////////
L_Tutorial:
// Update variable