aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/interface/ScriptMgr.cpp
diff options
context:
space:
mode:
authorAnubisss <none@none>2009-05-25 22:07:08 +0200
committerAnubisss <none@none>2009-05-25 22:07:08 +0200
commit2a658a513476a43efbb3eff1cd24532bfcdccb83 (patch)
tree0c7b88013f54379a5ba193c0932598065f3bb052 /src/bindings/interface/ScriptMgr.cpp
parent6e9af44a8bc48fac648685384e4fd758bf4a0db2 (diff)
*Fix the startup with trinityinterface.
--HG-- branch : trunk
Diffstat (limited to 'src/bindings/interface/ScriptMgr.cpp')
-rw-r--r--src/bindings/interface/ScriptMgr.cpp31
1 files changed, 26 insertions, 5 deletions
diff --git a/src/bindings/interface/ScriptMgr.cpp b/src/bindings/interface/ScriptMgr.cpp
index 397bfd2bb70..2a6a9861829 100644
--- a/src/bindings/interface/ScriptMgr.cpp
+++ b/src/bindings/interface/ScriptMgr.cpp
@@ -88,7 +88,6 @@ char const* ScriptsVersion()
{
return "Default Trinity scripting library";
}
-
TRINITY_DLL_EXPORT
bool GossipHello ( Player * player, Creature *_Creature )
{
@@ -289,12 +288,34 @@ bool ItemUse( Player *player, Item* _Item, SpellCastTargets const& targets)
}
TRINITY_DLL_EXPORT
-bool ReceiveEmote( Player *player, Creature *_Creature, uint32 emote )
+bool EffectDummyCreature(Unit *caster, uint32 spellId, uint32 effIndex, Creature *crTarget )
{
- Script *tmpscript = m_scripts[_Creature->GetScriptId()];
- if (!tmpscript || !tmpscript->pReceiveEmote) return false;
+ Script *tmpscript = m_scripts[crTarget->GetScriptId()];
+
+ if (!tmpscript || !tmpscript->pEffectDummyCreature) return false;
+
+ return tmpscript->pEffectDummyCreature(caster, spellId,effIndex,crTarget);
+}
+
+TRINITY_DLL_EXPORT
+bool EffectDummyGameObj(Unit *caster, uint32 spellId, uint32 effIndex, GameObject *gameObjTarget )
+{
+ Script *tmpscript = m_scripts[gameObjTarget->GetGOInfo()->ScriptId];
+
+ if (!tmpscript || !tmpscript->pEffectDummyGameObj) return false;
+
+ return tmpscript->pEffectDummyGameObj(caster, spellId,effIndex,gameObjTarget);
+}
+
+
+TRINITY_DLL_EXPORT
+bool EffectDummyItem(Unit *caster, uint32 spellId, uint32 effIndex, Item *itemTarget )
+{
+ Script *tmpscript = m_scripts[itemTarget->GetProto()->ScriptId];
+
+ if (!tmpscript || !tmpscript->pEffectDummyItem) return false;
- return tmpscript->pReceiveEmote(player, _Creature, emote);
+ return tmpscript->pEffectDummyItem(caster, spellId,effIndex,itemTarget);
}
TRINITY_DLL_EXPORT