吾爱尚玩资源基地
标题:
魔兽世界私服技能调试信息的显示代码
[打印本页]
作者:
admin
时间:
2016-4-18 22:27
标题:
魔兽世界私服技能调试信息的显示代码
switch( Caster->GetTypeId() ) {
case TYPEID_PLAYER:
{
Player* p_caster = (Player*)Caster;
if(p_caster && p_caster->isGameMaster())
{
ChatHandler(p_caster).PSendSysMessage("Spell id:%d Effect[0]:%d Effect[1]:%d Effect[2]:%d
AuraName[0]:%d AuraName[1]:%d AuraName[2]:%d MiscValue[0]:%d
MiscValue[1]:%d MiscValue[2]:%d BasePoints[0]:%d BasePoints[1]:%d
BasePoints[2]:%d BaseDice[0]:%d BaseDice[1]:%d BaseDice[2]:%d
TargetA[0]:%d TargetA[1]:%d TargetA[2]:%d TargetB[0]:%d
TargetB[1]:%d TargetB[2]:%d CasterAuraState == %d CR =%d CRTime =%d
PowerType = %d Tsp0 %d Tsp1 %d Tsp2 %d",m_spellInfo->Id,
m_spellInfo->Effect[0],m_spellInfo->Effect[1],m_spellInfo->Effect[2],
m_spellInfo->EffectApplyAuraName[0],m_spellInfo->EffectApplyAuraName[1],
m_spellInfo->EffectApplyAuraName[2],m_spellInfo->EffectMiscValue[0],
m_spellInfo->EffectMiscValue[1],m_spellInfo->EffectMiscValue[2],
m_spellInfo->EffectBasePoints[0],m_spellInfo->EffectBasePoints[1],
m_spellInfo->EffectBasePoints[2],m_spellInfo->EffectBaseDice[0],
m_spellInfo->EffectBaseDice[1],m_spellInfo->EffectBaseDice[2],
m_spellInfo->EffectImplicitTargetA[0],m_spellInfo->EffectImplicitTargetA[1],
m_spellInfo->EffectImplicitTargetA[2],m_spellInfo->EffectImplicitTargetB[0],
m_spellInfo->EffectImplicitTargetB[1],m_spellInfo->EffectImplicitTargetB[2],
m_spellInfo->CasterAuraState,m_spellInfo->Category,m_spellInfo->CategoryRecoveryTime,
m_spellInfo->powerType,m_spellInfo->EffectTriggerSpell[0],
m_spellInfo->EffectTriggerSpell[1],m_spellInfo->EffectTriggerSpell[2]);
ChatHandler(p_caster).PSendSysMessage("Spell_Dmg_Type = %d Namehas = %d
SpellGroupType[0]=%d SpellGroupType[1]=%d SpellGroupType [2]=%d
EffectSpellClassMask[0][0]=%d EffectSpellClassMask[0][1]=%d
EffectSpellClassMask[0][2]=%d EffectSpellClassMask[1][0]=%d
EffectSpellClassMask[1][1]=%d EffectSpellClassMask[1][2]=%d
EffectSpellClassMask[2][0]=%d EffectSpellClassMask[2][1]=%d
EffectSpellClassMask[2][2]=%d RecoveryTime= %d Attributes = %d",
m_spellInfo->EffectSpellClassMaskA[0],m_spellInfo->EffectSpellClassMaskA[1],
m_spellInfo->EffectSpellClassMaskA[2],m_spellInfo->EffectSpellClassMaskB[0],
m_spellInfo->EffectSpellClassMaskB[1],m_spellInfo->EffectSpellClassMaskB[2],
m_spellInfo->EffectSpellClassMaskC[0],m_spellInfo->EffectSpellClassMaskC[1],
m_spellInfo->EffectSpellClassMaskC[2],m_spellInfo->RecoveryTime,
m_spellInfo->Attributes);
}
}break;
}
Spell::Spell( Unit* Caster, SpellEntry const *info, bool triggered, uint64 originalCasterGUID, Spell** triggeringContainer )
{
ASSERT( Caster != NULL && info != NULL );
ASSERT( info == sSpellStore.LookupEntry( info->Id ) && "`info` must be pointer to sSpellStore element");
m_spellInfo = info;
m_caster = Caster;
m_selfContainer = NULL;
m_triggeringContainer = triggeringContainer;
m_referencedFromCurrentSpell = false;
m_executedCurrently = false;
m_delayStart = 0;
m_delayAtDamageCount = 0;
m_applyMultiplierMask = 0;
作者:
我回来了
时间:
2016-11-20 05:45
找了好久终于找到了!吾爱尚玩免费服务端下载!
欢迎光临 吾爱尚玩资源基地 (http://bbs.523play.com/)
Powered by Discuz! X3.4