From 9bb8e29c61145a7ffc1dc7b8359356d47540b6c7 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 9 Jan 2019 13:54:44 -0200 Subject: Hasan rewards, how I missed them o.o --- npc/003-1/hasan.txt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'npc/003-1') 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; -- cgit v1.2.3-60-g2f50