summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-05-17 14:30:58 -0300
committerJesusaves <cpntb1@ymail.com>2020-05-17 14:30:58 -0300
commit13c26f1c4ecea2944cf04cceb558243142c0af28 (patch)
treefbdc9d777bbdcfb4804400de9448cd6a45414855 /npc
parentc564106e55cd9f850df74dbde6beae82c936b38e (diff)
downloadserverdata-13c26f1c4ecea2944cf04cceb558243142c0af28.tar.gz
serverdata-13c26f1c4ecea2944cf04cceb558243142c0af28.tar.bz2
serverdata-13c26f1c4ecea2944cf04cceb558243142c0af28.tar.xz
serverdata-13c26f1c4ecea2944cf04cceb558243142c0af28.zip
Actually, move this to utils. Will look cleaner this way.
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/scoreboards.txt10
-rw-r--r--npc/functions/util.txt10
2 files changed, 10 insertions, 10 deletions
diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt
index 3c501653e..462bfcfcf 100644
--- a/npc/functions/scoreboards.txt
+++ b/npc/functions/scoreboards.txt
@@ -4,16 +4,6 @@
// Description:
// Leaderboards + GM Command Log
-// Returns if an event is a ranked Aurora Event or not
-// (Had to be moved from functions/aurora.txt)
-function script FYEventUsesRanking {
- setarray .@av$, "Expo", "Fishing";
- if (array_find(.@av$, $EVENT$) >= 0) {
- return true;
- }
- return false;
-}
-
function script ScoreboardsReload {
debugmes "Reloading scoreboards...";
.@nb = query_sql("select name, zeny from `char` WHERE `guild_id`!=1 ORDER BY zeny DESC LIMIT 15", $@hofortune_name$, $@hofortune_value);
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 98d96336e..5ac5beda7 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -578,6 +578,16 @@ function script nard_time {
return INT_MAX;
}
+// Returns if an event is a ranked Aurora Event or not
+// (Had to be moved from functions/aurora.txt)
+function script FYEventUsesRanking {
+ setarray .@av$, "Expo", "Fishing";
+ if (array_find(.@av$, $EVENT$) >= 0) {
+ return true;
+ }
+ return false;
+}
+
// Determines if player is still in range.
// eg.
// if (reachable(.x, .y, .distance)) {