mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
Merge pull request #39 from mackal/Fade_Escape_Fix
Fixed and cleaned up Client::Escape()
This commit is contained in:
+3
-15
@@ -3129,22 +3129,10 @@ uint8 Client::SlotConvert2(uint8 slot){
|
||||
|
||||
void Client::Escape()
|
||||
{
|
||||
hidden = true;
|
||||
entity_list.ClearFeignAggro(this);
|
||||
entity_list.RemoveFromTargets(this, true);
|
||||
SetInvisible(1);
|
||||
|
||||
EQApplicationPacket *outapp = new EQApplicationPacket(OP_SimpleMessage,12);
|
||||
SimpleMessage_Struct *msg=(SimpleMessage_Struct *)outapp->pBuffer;
|
||||
msg->color=0x010E;
|
||||
msg->string_id=114;
|
||||
FastQueuePacket(&outapp);
|
||||
|
||||
outapp = new EQApplicationPacket(OP_SpawnAppearance, sizeof(SpawnAppearance_Struct));
|
||||
SpawnAppearance_Struct* sa_out = (SpawnAppearance_Struct*)outapp->pBuffer;
|
||||
sa_out->spawn_id = GetID();
|
||||
sa_out->type = 0x03;
|
||||
sa_out->parameter = 1;
|
||||
entity_list.QueueClients(this, outapp);
|
||||
safe_delete(outapp);
|
||||
Message_StringID(MT_Skills, ESCAPE);
|
||||
}
|
||||
|
||||
float Client::CalcPriceMod(Mob* other, bool reverse)
|
||||
|
||||
Reference in New Issue
Block a user