Hello, I need to know where is this spell “23598” scripted in the core. Is [Meeting Stone Summon]
I was searching thrugh spell cpp file but didnt found it
Hello, I need to know where is this spell “23598” scripted in the core. Is [Meeting Stone Summon]
I was searching thrugh spell cpp file but didnt found it
http://www.wowhead.com/spell=23598
Validate Summon
It does not require coding, as it is basically hardcoded within the source.
Correct me if I am wrong.
I want to see the code after the player finishes to cast the spell
Sorry, meant client. Typo.
found
Really ? Where is it ? To be honest, that was my first assumption, but if I’m wrong I’d gladly be corrected.
What I really needed was the code, how that summon request is done ^^ not really sure if this is but this is what I found atm and worked for what I was looking for
void Spell::EffectSummonPlayer(SpellEffIndex /*effIndex*/)
{
// workaround - this effect should not use target map
if (effectHandleMode != SPELL_EFFECT_HANDLE_HIT_TARGET)
return;
if (!unitTarget || unitTarget->GetTypeId() != TYPEID_PLAYER)
return;
// Evil Twin (ignore player summon, but hide this for summoner)
if (unitTarget->HasAura(23445))
return;
float x, y, z;
m_caster->GetPosition(x, y, z);
unitTarget->ToPlayer()->SetSummonPoint(m_caster->GetMapId(), x, y, z);
WorldPacket data(SMSG_SUMMON_REQUEST, 8+4+4);
data << uint64(m_caster->GetGUID()); // summoner guid
data << uint32(m_caster->GetZoneId()); // summoner zone
data << uint32(MAX_PLAYER_SUMMON_DELAY*IN_MILLISECONDS); // auto decline after msecs
unitTarget->ToPlayer()->GetSession()->SendPacket(&data);
}
Cheers