Mobius
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Summon problem?

Go down

Summon problem? Empty Summon problem?

Post by stas51447 02/08/14, 10:58 am

Welcome. Immediately apologize for my bad english  ^^
There is a problem with summon's. If called multiple summon, and if one of them to kill or expel,
disappears status window (health, mana, buffs) both.  Fixed this packet sending a packet PetInfo
and PetStatusUpdate in the method onDelete (model.Summon) for each of summon's

/**
* Method onDelete.
*/
@Override
protected void onDelete()
{
Player owner = getPlayer();
Party party = owner.getParty();
if (party != null)
{
party.broadcastToPartyMembers(owner, new ExPartyPetWindowDelete(this));
}
owner.sendPacket(new PetDelete(getSummonType(), getObjectId()));
owner.getSummonList().removeSummon(this);

for(Summon summon : owner.getSummonList().getServitors())
{
owner.sendPacket(new PetInfo(summon));
owner.sendPacket(new PetStatusUpdate(summon));
}

stopDecay();
super.onDelete();

}


Now there is another problem, when you kill summon, is not triggered animation death,
he's just standing there with 0 health and then disappears.. How to fix? Thank You

stas51447
Vassal
Vassal

Posts : 1
Join date : 2014-08-02

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum