Jump to content

lecails

Members
  • Posts

    177
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Posts posted by lecails

  1. Nice patch. All working good exept one... If your eye atacking by mobs and in this time you logout, after eye die - server crash. Eye must unsummon if owner not in world.

    I think , its possible to make condition for logout which unsummon eye and when eye die too .

    In my server I dont look any mob when I summon eye ...

  2. I test some patch for fix Death Grip but they dont work anymore whith my revision(9210)

    // Death Grip

    switch(m_spellInfo->Id)

    {

    case 49560:

    case 49576:

    {

    if(!unitTarget || !m_caster)

    return;

    // unitTarget is Creature

    if(unitTarget->GetTypeId()!=TYPEID_PLAYER)

    {

    float x = m_caster->GetPositionX();

    float y = m_caster->GetPositionY();

    float z = m_caster->GetPositionZ()+1;

    float orientation = unitTarget->GetOrientation();

    unitTarget->SendMonsterMove(x,y,z,orientation,MONSTER_MOVE_UNK6,1);

    }

    else

    { // unitTarget is Player

    float vsin = sin(unitTarget->GetAngle(m_caster));

    float vcos = cos(unitTarget->GetAngle(m_caster));

    WorldPacket data(SMSG_MOVE_KNOCK_BACK, (8+4+4+4+4+4));

    data.append(unitTarget->GetPackGUID());

    data << uint32(0); // Sequence

    data << float(vcos); // x direction

    data << float(vsin); // y direction

    // Horizontal speed

    data << float(damage ? damage : unitTarget->GetDistance2d(m_caster));

    data << float(-10.0); // Z Movement speed

    ((Player*)unitTarget)->GetSession()->SendPacket(&data);

    }

    m_caster->CastSpell(unitTarget,49576,true); //Taunt

    return;

    }

    }

    Anyone know why this code doesnt work ? Plz

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use