diff options
author | Jesusaves <cpntb1@ymail.com> | 2023-12-25 15:30:02 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2023-12-25 15:30:02 -0300 |
commit | 3925d367d5d1d0ebfc7022998c8d46a2047923fd (patch) | |
tree | 454c3f8cd86794241f1c5cc50ae6c074c5ec2077 | |
parent | 50018c7e8c186a9f12e2a48b1036ae262449870b (diff) | |
download | serverdata-3925d367d5d1d0ebfc7022998c8d46a2047923fd.tar.gz serverdata-3925d367d5d1d0ebfc7022998c8d46a2047923fd.tar.bz2 serverdata-3925d367d5d1d0ebfc7022998c8d46a2047923fd.tar.xz serverdata-3925d367d5d1d0ebfc7022998c8d46a2047923fd.zip |
Fix a possible issue before it becomes an actual issue - credits to YuckFou
-rw-r--r-- | npc/003-3/malindou.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/npc/003-3/malindou.txt b/npc/003-3/malindou.txt index 008b95c04..94eefb26f 100644 --- a/npc/003-3/malindou.txt +++ b/npc/003-3/malindou.txt @@ -695,6 +695,10 @@ OnInit: deletearray(.@vv); // Select only one char from the account, the one with highest job .@nb = query_sql("SELECT `char_id`, `name`, `base_level`, `job_level` FROM `char` WHERE `account_id` = "+.@acids[.@xi]+" ORDER BY `job_level` DESC LIMIT 1", .@cid, .@name$, .@blvl, .@jlvl); + // Eliminate if .@name$ in the list of legendary holders + if (islegendary(.@name$)) + continue; + // Load quests and variables (up to 128 - query_sql's limit) .@nb = query_sql("SELECT `quest_id`, `count1` FROM `quest` WHERE `char_id` = "+.@cid+" ORDER BY `count1` DESC LIMIT 128", .@quest_id, .@qv); .@nb = query_sql("SELECT `key`, `value` FROM `char_reg_num_db` WHERE `index` = 0 AND `char_id` = "+.@cid+" ORDER BY `value` DESC LIMIT 128", .@var_id$, .@vv); // Are you eligible for the Lightbringer? Otherwise, it is expensive |