summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-31 13:07:22 +0000
committerFlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-31 13:07:22 +0000
commitccf5701ffb1d5d055254e6ec4bdae92ab4977cb2 (patch)
tree9d9338815816a03f4a5a360142e23ddfd6a5316b /src/map
parent5178ca9df008ecff5e78fb52baddedac9c318702 (diff)
downloadhercules-ccf5701ffb1d5d055254e6ec4bdae92ab4977cb2.tar.gz
hercules-ccf5701ffb1d5d055254e6ec4bdae92ab4977cb2.tar.bz2
hercules-ccf5701ffb1d5d055254e6ec4bdae92ab4977cb2.tar.xz
hercules-ccf5701ffb1d5d055254e6ec4bdae92ab4977cb2.zip
- 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
Diffstat (limited to 'src/map')
-rw-r--r--src/map/npc.c9
-rw-r--r--src/map/skill.c2
2 files changed, 8 insertions, 3 deletions
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;