diff options
| author | megamage <none@none> | 2009-08-13 14:39:01 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-13 14:39:01 -0500 |
| commit | e0449b421c6cc29d4ea6b292ec64462f7491b579 (patch) | |
| tree | de37ca152fe8f5dc3b810c7e473f6a43dbcc39e8 | |
| parent | e2374e8bdb358922760e6e14b2c4744c085d5dd1 (diff) | |
*Add some detailed error log in SCRIPT_COMMAND_CAST_SPELL so we can know what is causing spams
--HG--
branch : trunk
| -rw-r--r-- | sql/FULL/world_spell_full.sql | 1 | ||||
| -rw-r--r-- | src/game/Map.cpp | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/sql/FULL/world_spell_full.sql b/sql/FULL/world_spell_full.sql index d27a36b1c8f..65dd8c225c0 100644 --- a/sql/FULL/world_spell_full.sql +++ b/sql/FULL/world_spell_full.sql @@ -1995,6 +1995,7 @@ INSERT INTO `spell_target_position` (`id`, `target_map`, `target_position_x`, `t 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 (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 ( 54568, 54575, 52263, 52280, 52447); diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 341cd59960f..1d6f1d2b5da 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -3307,7 +3307,7 @@ void Map::ScriptsProcess() 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; } @@ -3323,7 +3323,7 @@ void Map::ScriptsProcess() 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; } |
