summaryrefslogtreecommitdiff
path: root/npc/003-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-12-14 17:00:38 -0300
committerJesusaves <cpntb1@ymail.com>2020-12-14 17:00:38 -0300
commit7ace53259a1c37b527b330af603fb1cb4778a118 (patch)
tree5bead7182a84a5e0a3e36794f65d15f5b8c3e1c6 /npc/003-1
parent0bfaa6266edbd9a9d9169d029bc858967e827722 (diff)
downloadserverdata-7ace53259a1c37b527b330af603fb1cb4778a118.tar.gz
serverdata-7ace53259a1c37b527b330af603fb1cb4778a118.tar.bz2
serverdata-7ace53259a1c37b527b330af603fb1cb4778a118.tar.xz
serverdata-7ace53259a1c37b527b330af603fb1cb4778a118.zip
Clean up and improve a bit Hasan's scripts
Diffstat (limited to 'npc/003-1')
-rw-r--r--npc/003-1/hasan.txt21
1 files changed, 12 insertions, 9 deletions
diff --git a/npc/003-1/hasan.txt b/npc/003-1/hasan.txt
index f100b0c32..2472ddc9f 100644
--- a/npc/003-1/hasan.txt
+++ b/npc/003-1/hasan.txt
@@ -85,7 +85,7 @@ L_Complete:
mesn;
mesq l("I am collecting money for the Yearly Autumn Scorpion Hunter quest.");
mesq l("You're, of course, invited. Thus far, the total prize money I've collected is @@ GP.", $HASAN_GP);
- if (season() == AUTUMN || $@GM_OVERRIDE) {
+ if (season() == AUTUMN || $@GM_OVERRIDE || is_staff()) {
mesq l("You've killed @@ scorpions, and a total of @@ were killed this season.", getq2(SQuest_Autumn), $HASAN_ST);
mesq l("If the event ended now, you would get @@ GP.", getq2(SQuest_Autumn)*$HASAN_GP/$HASAN_ST);
mes "";
@@ -118,19 +118,22 @@ L_Complete:
mesn l("Summary");
mes l("Scorpions killed: @@/@@ scorpions", getq2(SQuest_Autumn), $HASAN_ST);
mes l("Total money collected: @@ GP", $HASAN_LT);
- mes l("##2Your prize: @@ GP", .@p);
+ mesc l("Your prize: %s GP", fnum(.@p)), 2;
if (getq2(SQuest_Autumn) > 20)
getexp (getq2(SQuest_Autumn)/20), 0;
if (.@p >= 1)
- Zeny=Zeny+.@p;
-
- // 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])
+ Zeny+=.@p;
+
+ // Top 5 reward
+ if (strcharinfo(0) == $@hasn_name$[0])
+ getitem SupremeGift, 1;
+ if (strcharinfo(0) == $@hasn_name$[1])
+ getitem PrismGift, 1;
+ if (strcharinfo(0) == $@hasn_name$[2])
getitem GoldenGift, 1;
- if (strcharinfo(0) == .@name$[1])
+ if (strcharinfo(0) == $@hasn_name$[3])
getitem SilverGift, 1;
- if (strcharinfo(0) == .@name$[2])
+ if (strcharinfo(0) == $@hasn_name$[4])
getitem BronzeGift, 1;
// Quest is closed