From ccf5701ffb1d5d055254e6ec4bdae92ab4977cb2 Mon Sep 17 00:00:00 2001 From: FlavioJS Date: Sun, 31 Dec 2006 13:07:22 +0000 Subject: - Added more info when npc_scriptcont tries to continue a different script. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9601 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 9 +++++++-- src/map/skill.c | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/map/npc.c b/src/map/npc.c index 9ce3160f6..598cc8ee7 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1110,8 +1110,13 @@ int npc_scriptcont(struct map_session_data *sd,int id) { nullpo_retr(1, sd); - if (id!=sd->npc_id){ - ShowWarning("npc_scriptcont: sd->npc_id (%d) is not id (%d).\n", sd->npc_id, id); + if( id != sd->npc_id ){ + TBL_NPC* nd_sd=(TBL_NPC*)map_id2bl(sd->npc_id); + TBL_NPC* nd=(TBL_NPC*)map_id2bl(id); + if( nd_sd && nd ) + ShowWarning("npc_scriptcont: %s (sd->npc_id=%d) is not %s (id=%d).\n", nd_sd->name, sd->npc_id, nd->name, id); + else + ShowDebug("npc_scriptcont: Invalid npc ID, npc_id variable not cleared? %x (sd->npc_id=%d) is not %x (id=%d)\n", (int)nd_sd, sd->npc_id, (int)nd, id); return 1; } diff --git a/src/map/skill.c b/src/map/skill.c index 0655990c8..42d826c44 100644 --- a/src/map/skill.c +++ b/src/map/skill.c @@ -8461,7 +8461,7 @@ int skill_check_condition (struct map_session_data *sd, int skill, int lv, int t return 0; } break; - case ST_RECOV_WEIGHT_RATE: + case ST_RECOV_WEIGHT_RATE://## what is this for and why can battle_config.natural_heal_weight_rate be 101? [FlavioJS] if(battle_config.natural_heal_weight_rate <= 100 && sd->weight*100/sd->max_weight >= battle_config.natural_heal_weight_rate) { clif_skill_fail(sd,skill,0,0); return 0; -- cgit v1.2.3-70-g09d2