Yet again you're being extremely vague. You: "Well I made this cake, but its not doing what it's supposed to. I dunno. It just not intended. You know?"
Code:
case 15286: //Vampiric Embrace
{
if(apply)
{
SetNegative();
Unit * caster =this->GetUnitCaster();
if(caster && caster->IsPlayer())
{
((Player*)caster)->m_vampiricEmbrace++;
++m_target->m_hasVampiricEmbrace;
}
}
else
{
Unit * caster =this->GetUnitCaster();
if(caster && caster->IsPlayer())
{
((Player*)caster)->m_vampiricEmbrace--;
--m_target->m_hasVampiricEmbrace;
}
}
break;
}
Dear lord dude, you were not even using brackets after your if statements. Just a word of advice, learn the language before jumping into anything huge, for instance creating scripts for WoW servers :-P.
Try the above code, it might help, not quite sure.