whats the C++ function to make a player cast a spell?
whats the C++ function to make a player cast a spell?
PlrCastSpell ? lol
error C3861: 'PlrCastSpell': identifier not found
Hmm, yes. ( C++ is gay! )
and Plr->CastSpell
error C2661: 'Unit::CastSpell' : no overloaded function takes 1 arguments
plz ill +Rep
Spell.cpp ive looked through it a bit
If you need me you have my skype, if you don't have my skype then you don't need me.
these are what I have found:
option 1) CastSpell(Unit * Target,uint32 spellid,bool triggered)
2) CastSpell(Unit * Target,SpellEntry * Sp,bool Triggered)
3) CastSpell(uint64 TargetGUIDHigh,uint32 SpellID,bool triggered)
4) CastSpell(uint64 targetGUIDHigh,SpellEntry * Sp,bool triggered)