summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-01-09 13:54:44 -0200
committerJesusaves <cpntb1@ymail.com>2019-01-09 13:54:44 -0200
commit9bb8e29c61145a7ffc1dc7b8359356d47540b6c7 (patch)
tree717185de9327d98c889a8dbd766f4150a921cb67
parentc02b417507fa14dc333a5d13766880c88eabc74d (diff)
downloadserverdata-9bb8e29c61145a7ffc1dc7b8359356d47540b6c7.tar.gz
serverdata-9bb8e29c61145a7ffc1dc7b8359356d47540b6c7.tar.bz2
serverdata-9bb8e29c61145a7ffc1dc7b8359356d47540b6c7.tar.xz
serverdata-9bb8e29c61145a7ffc1dc7b8359356d47540b6c7.zip
Hasan rewards, how I missed them o.o
-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;