*Add some detailed error log in SCRIPT_COMMAND_CAST_SPELL so we can know what is causing spams

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-13 14:39:01 -05:00
parent e2374e8bdb
commit e0449b421c
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -1995,6 +1995,7 @@ INSERT INTO `spell_target_position` (`id`, `target_map`, `target_position_x`, `t
DELETE FROM spell_area WHERE spell = 52693; DELETE FROM spell_area WHERE spell = 52693;
INSERT INTO spell_area (`spell`, `area`, `quest_start`, `quest_start_active`, `quest_end`, `aura_spell`, `racemask`, `gender`, `autocast`) VALUES INSERT INTO spell_area (`spell`, `area`, `quest_start`, `quest_start_active`, `quest_end`, `aura_spell`, `racemask`, `gender`, `autocast`) VALUES
(52693, 4298, 12687, 1, 12687, 0, 0, 2, 1); (52693, 4298, 12687, 1, 12687, 0, 0, 2, 1);
update spell_area set gender=2 where spell in (33836,50426,46023,52693);
DELETE FROM `npc_spellclick_spells` WHERE `spell_id` IN ( DELETE FROM `npc_spellclick_spells` WHERE `spell_id` IN (
54568, 54575, 52263, 52280, 52447); 54568, 54575, 52263, 52280, 52447);
+2 -2
View File
@@ -3307,7 +3307,7 @@ void Map::ScriptsProcess()
if(!cmdTarget) if(!cmdTarget)
{ {
sLog.outError("SCRIPT_COMMAND_CAST_SPELL call for NULL %s.",step.script->datalong2 & 0x01 ? "source" : "target"); sLog.outError("SCRIPT_COMMAND_CAST_SPELL %u call for NULL %s.", step.script->datalong, step.script->datalong2 & 0x01 ? "source" : "target");
break; break;
} }
@@ -3323,7 +3323,7 @@ void Map::ScriptsProcess()
if(!cmdSource) if(!cmdSource)
{ {
sLog.outError("SCRIPT_COMMAND_CAST_SPELL call for NULL %s.",step.script->datalong2 & 0x02 ? "target" : "source"); sLog.outError("SCRIPT_COMMAND_CAST_SPELL %u call for NULL %s.", step.script->datalong, step.script->datalong2 & 0x02 ? "target" : "source");
break; break;
} }