summaryrefslogtreecommitdiff
path: root/npc/042-0
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-02 09:46:58 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-02 09:46:58 -0300
commit68fc023f056bc6827bd57db88d3792c3723a84de (patch)
tree7aec5f9d19dc5009295b3dc03a91b3ca4645de3e /npc/042-0
parent41d379f07621dc9411412865455a33947579501b (diff)
downloadserverdata-68fc023f056bc6827bd57db88d3792c3723a84de.tar.gz
serverdata-68fc023f056bc6827bd57db88d3792c3723a84de.tar.bz2
serverdata-68fc023f056bc6827bd57db88d3792c3723a84de.tar.xz
serverdata-68fc023f056bc6827bd57db88d3792c3723a84de.zip
Reward for non-guild representatives
Diffstat (limited to 'npc/042-0')
-rw-r--r--npc/042-0/arthur.txt23
1 files changed, 23 insertions, 0 deletions
diff --git a/npc/042-0/arthur.txt b/npc/042-0/arthur.txt
index 798343aeb..a6a863423 100644
--- a/npc/042-0/arthur.txt
+++ b/npc/042-0/arthur.txt
@@ -181,11 +181,34 @@ L_Tutorial:
//////////////////////////////////////////////////////////////////////////
L_Refusal:
+ if ($KAMELOT_QUEST[.@g] & 64) goto L_Reward2;
mesc l("This man is THE LEGENDARY KING ARTHUR!");
mes "";
mesc l("I better leave talking to him to the guild Vice Leaders and Master.");
close;
+L_Reward2:
+ mesn;
+ mesq l("Thanks for your services, knight. One day, you might even deserve a seat at this castle.");
+ next;
+ mesn;
+ mesq l("Farewell, until the next time. Shall we met again, and may the light guide our paths.");
+ warp "014-4", 67, 27;
+ .@cn=$KAMELOT_MX[.@g]/10;
+ // Penalty if you dragged the guild down
+ if (BaseLevel < $KAMELOT_MX[.@g]*5/10)
+ .@cn=.@cn*5/10;
+ // Penalty if you carried the guild
+ if (BaseLevel > $KAMELOT_MX[.@g]*15/10)
+ .@cn=.@cn*5/10;
+ // Your reward
+ .@cn+=1;
+ getitem GuildCoin, .@cn;
+ guildgetexp(.@cn*300);
+ getexp BaseLevel*10, .@cn*35;
+ Zeny+=.@cn*1000;
+ close;
+
OnKillMob:
if (!playerattached()) end;
.@g=getcharid(2);