summaryrefslogtreecommitdiff
path: root/npc/003-1/hasan.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/003-1/hasan.txt')
-rw-r--r--npc/003-1/hasan.txt13
1 files changed, 12 insertions, 1 deletions
diff --git a/npc/003-1/hasan.txt b/npc/003-1/hasan.txt
index dc67bd739..cd066797f 100644
--- a/npc/003-1/hasan.txt
+++ b/npc/003-1/hasan.txt
@@ -110,7 +110,18 @@ L_Complete:
getexp (getq2(SQuest_Autumn)/20), 0;
if (.@p >= 1)
Zeny=Zeny+.@p;
- setq SQuest_Autumn, 1970, 0;
+
+ // Top 3 reward
+ .@nb = query_sql("SELECT c.name FROM `quest` AS i, `char` AS c WHERE i.quest_id="+SQuest_Autumn+" AND i.char_id=c.char_id ORDER BY i.count2 DESC LIMIT 5", .@name$);
+ if (strcharinfo(0) == .@name$[0])
+ getitem GoldenGift, 1;
+ if (strcharinfo(0) == .@name$[1])
+ getitem SilverGift, 1;
+ if (strcharinfo(0) == .@name$[2])
+ getitem BronzeGift, 1;
+
+ // Quest is closed
+ setq1 SQuest_Autumn, 1970;
}
close;