Changeset 55 for trunk/src/bindings

Show
Ignore:
Timestamp:
11/19/08 13:29:45 (17 years ago)
Author:
yumileroy
Message:

[svn] Remove unused script event functions HealBy? and DamageDeal?. Add new function SpellHitTarget?.
Fix a bug in r57_trinity.sql.

Original author: megamage
Date: 2008-10-18 11:50:02-05:00

Location:
trunk/src/bindings/scripts
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/bindings/scripts/include/sc_creature.h

    r44 r55  
    3030    void EnterEvadeMode(); 
    3131 
    32     //Called at any heal cast/item used (call non implemented in Trinity) 
    33     void HealBy(Unit *healer, uint32 amount_healed) {} 
    34  
    35     // Called at any Damage to any victim (before damage apply) 
    36     void DamageDeal(Unit *done_to, uint32 &damage) {} 
    37  
    3832    // Called at any Damage from any attacker (before damage apply) 
    3933    void DamageTaken(Unit *done_by, uint32 &damage) {} 
     
    5852 
    5953    // Called when hit by a spell 
    60     void SpellHit(Unit*, const SpellEntry*) {} 
     54    void SpellHit(Unit* caster, const SpellEntry*) {} 
     55 
     56    // Called when spell hits a target 
     57    void SpellHitTarget(Unit* target, const SpellEntry*) {} 
    6158 
    6259    // Called when creature is spawned or respawned (for reseting variables) 
  • trunk/src/bindings/scripts/sql/Updates/r57_trinity.sql

    r53 r55  
    3737INSERT INTO `spell_script_target` VALUES ('42577', '1', '24136'); 
    3838 
    39 UPDATE `creature_template` SET `lootid` = `entry`, `ScriptName` = 'npc_zulaman_hostage' WHERE `entry` IN (23790, 23999, 24024, 24001); 
     39UPDATE `creature_template` SET `ScriptName` = 'npc_zulaman_hostage' WHERE `entry` IN (23790, 23999, 24024, 24001);