summaryrefslogtreecommitdiff
path: root/npc/functions/aurora.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-16 22:21:13 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-16 22:21:13 -0300
commit9fc926a4e8ebb8f827d45d60300ea6d993f2be82 (patch)
tree244dfefcf28b604c10ce72635177597048cbdfb9 /npc/functions/aurora.txt
parentb73682d18acf226ea473138306b7d7e5fcf36094 (diff)
downloadserverdata-9fc926a4e8ebb8f827d45d60300ea6d993f2be82.tar.gz
serverdata-9fc926a4e8ebb8f827d45d60300ea6d993f2be82.tar.bz2
serverdata-9fc926a4e8ebb8f827d45d60300ea6d993f2be82.tar.xz
serverdata-9fc926a4e8ebb8f827d45d60300ea6d993f2be82.zip
Prepare the essential part for handing Aurora Events ranked rewards
Diffstat (limited to 'npc/functions/aurora.txt')
-rw-r--r--npc/functions/aurora.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/npc/functions/aurora.txt b/npc/functions/aurora.txt
index 217dfce8e..7ebd4c616 100644
--- a/npc/functions/aurora.txt
+++ b/npc/functions/aurora.txt
@@ -170,3 +170,17 @@ function script FYStopEvent {
return;
}
+// Handle the ending of Aurora Events
+function script FYRewardEvent {
+ setarray .@av$, "Expo", "Fishing";
+ if (array_find(.@av$, $EVENT$) >= 0) {
+ debugmes("Rewards are due");
+ // This code absolutely can't fail:
+ .@nb = query_sql("SELECT c.name, i.count2, c.char_id FROM `quest` AS i, `char` AS c WHERE i.quest_id="+Q_AuroraEvent+" AND i.char_id=c.char_id ORDER BY i.count2 DESC LIMIT 10", $@aurora_name$, $@aurora_value, $@aurora_charid);
+ // rodex_sendmail($@aurora_charid, "Aurora Events", "Event Reward!", "Message", gp, item, $@aurora_value);
+ // Destroy the quest
+ DelQuestFromEveryPlayer(Q_AuroraEvent);
+ }
+ return;
+}
+