public bool ReviveMerc()
{
if (!BotGameData.HasMerc)
{
Console.WriteLine("{0}: [D2GS] Reviving Merc", Account);
MoveTo(5082, 5080);
MoveTo(5060, 5076);
NpcEntity qual = GetNpc("Qual-Kehk");
if (qual != null && qual != default(NpcEntity))
TalkToTrader(qual.Id);
else
{
LeaveGame();
return false;
}
byte[] three = { 0x03, 0x00, 0x00, 0x00 };
SendPacket(0x38, three, BitConverter.GetBytes(qual.Id), GenericServer.nulls);
Thread.Sleep(300);
SendPacket(0x62, BitConverter.GetBytes(qual.Id));
Thread.Sleep(300);
SendPacket(0x38, three, BitConverter.GetBytes(qual.Id), GenericServer.nulls);
Thread.Sleep(300);
SendPacket(0x30, GenericServer.one, BitConverter.GetBytes(qual.Id));
Thread.Sleep(300);
MoveTo(5060, 5076);
MoveTo(5082, 5080);
MoveTo(5081, 5076);
}
return true;
}