summaryrefslogtreecommitdiff
path: root/npc/custom
diff options
context:
space:
mode:
authorAnnieRuru <jeankof@ymail.com>2014-09-02 05:27:36 +0800
committerAnnieRuru <jeankof@ymail.com>2014-09-02 05:27:36 +0800
commit4677ae74054a6a110e27a7c1be68b35a1dad249b (patch)
tree0750602dd980c529879e1334f136dea3339141b2 /npc/custom
parentbac319d7f99c9a87c20774a50e13d9c80d2aaf8a (diff)
downloadhercules-4677ae74054a6a110e27a7c1be68b35a1dad249b.tar.gz
hercules-4677ae74054a6a110e27a7c1be68b35a1dad249b.tar.bz2
hercules-4677ae74054a6a110e27a7c1be68b35a1dad249b.tar.xz
hercules-4677ae74054a6a110e27a7c1be68b35a1dad249b.zip
Update hunting_missions.txt to follow author's method on fixing character deletion bug
https://github.com/rathena/rathena/commit/3c24f45
Diffstat (limited to 'npc/custom')
-rw-r--r--npc/custom/quests/hunting_missions.txt18
1 files changed, 16 insertions, 2 deletions
diff --git a/npc/custom/quests/hunting_missions.txt b/npc/custom/quests/hunting_missions.txt
index c4e8187de..d4999648f 100644
--- a/npc/custom/quests/hunting_missions.txt
+++ b/npc/custom/quests/hunting_missions.txt
@@ -3,7 +3,7 @@
//===== By: ==================================================
//= Euphy
//===== Current Version: =====================================
-//= 1.4a
+//= 1.4b
//===== Description: =========================================
//= Random hunting missions.
//= Rewards are based on quest difficulty.
@@ -17,6 +17,8 @@
//= 1.4 Fix ranking table using new SQL database [ossi0110]
//= 1.4a Fix a bug when a character has deleted, that account
//= can't do mission. [AnnieRuru]
+//= 1.4b Update to follow author's method on fixing
+//= character deletion bug [AnnieRuru]
//============================================================
prontera,152,187,6 script Hunting Missions 4_F_EDEN_MASTER,{
@@ -44,9 +46,21 @@ function Chk; function Cm;
switch(select(((!Mission0)?" ~ New Mission::":": ~ Mission Status: ~ Abandon Mission")+": ~ Information: ~ Mission Shop: ~ View Top Hunters: ~ ^777777Cancel^000000")) {
case 1:
mes "[Hunting Missions]";
- if ( query_sql( "SELECT 1 FROM `char_reg_num_db` WHERE `key` = 'Mission0' AND `char_id` IN ( SELECT `char_id` FROM `char` WHERE `account_id` = "+ getcharid(3) +" )", .@dummy ) && #Mission_Count ) {
+ if ( #Mission_Count ) {
mes "You've started a mission";
mes "on another character.";
+ if ( !@hm_char_del_check ) {
+ if ( !query_sql( "SELECT 1 FROM `char_reg_num_db` WHERE `key` = 'Mission0' AND `char_id` IN ( SELECT `char_id` FROM `char` WHERE `account_id` = "+ getcharid(3) +" )", .@dummy ) ) {
+ next;
+ mes "[Hunting Missions]";
+ mes "I can't seem to find any records";
+ mes "for that character, though...";
+ mes "One moment, please.";
+ emotion e_hmm;
+ set #Mission_Count, 0;
+ }
+ set @hm_char_del_check, 1;
+ }
close;
}
if (#Mission_Delay > gettimetick(2) && .Delay) {