|
static void Revive(
static void Revive(Data generalData, Client.GameState client)
{
if (client.Entity.ContainsFlag(Update.Flags2.SoulShackle))
return;
if (client.InTeamQualifier())
return;
client.Entity.OnDeath = null;
if (Time32.Now >= client.Entity.DeathStamp.AddSeconds(18) && client.Entity.Dead)
{
client.Entity.Action = KhaledMohamed.Game.Enums.ConquerAction.None;
client.ReviveStamp = Time32.Now;
client.Attackable = false;
client.Entity.TransformationID = 0;
client.Entity.RemoveFlag(Update.Flags.Dead);
client.Entity.RemoveFlag(Update.Flags.Ghost);
client.Entity.Hitpoints = client.Entity.MaxHitpoints;
if (client.Entity.MapID == 1518)
{
client.Entity.Teleport(1002, 400, 400);
return;
}
bool ReviveHere = generalData.dwParam == 1;
if (client.Spells.ContainsKey(12660))
{
client.XPCount = client.Entity.XPCountTwist;
}
else if (client.Entity.MapID == 700)
{
client.Entity.Teleport(700, 51, 51);
}
if (client.Entity.MapID == 5555)
{
client.Entity.Teleport(5555, 39, 35);
}
if (client.Entity.MapID == 3868)
{
client.Entity.Teleport(3868, 227, 240);
}
if (client.Entity.MapID == 1038 && DateTime.Now.DayOfWeek == DayOfWeek.Friday)
{
client.Entity.Teleport(6001, 31, 74);
}
else if (client.Entity.MapID == 10380 && DateTime.Now.Day >= 27 && DateTime.Now.Day <= 29)
{
client.Entity.Teleport(1002, 300, 278);
}
else if (client.Entity.MapID == 1509)
{
client.Entity.Teleport(1509, 103, 43);
}
else if (client.Entity.MapID == 11024)
{
client.Entity.Teleport(11024, 303, 147);
}
else if (client.Entity.MapID == 11032)
{
client.Entity.Teleport(11032, 226, 227);
}
else if (client.Entity.MapID == 2014)
{
client.Entity.Teleport(2014, 150, 162);
}
else if (client.Entity.MapID == 2071 || client.Entity.MapID == 11022)
{
client.Entity.Teleport(client.Entity.MapID, 43, 129);
}
else if (client.Entity.MapID == 1730)
{
client.Entity.Teleport(1731, 59, 69);
}
else if (client.Entity.MapID == 1731)
{
client.Entity.Teleport(1732, 59, 69);
}
else if (client.Entity.MapID == 1732)
{
client.Entity.Teleport(1733, 59, 69);
}
else if (client.Entity.MapID == 1733)
{
client.Entity.Teleport(1734, 59, 69);
}
else if (client.Entity.MapID == 1734)
{
client.Entity.Teleport(1735, 59, 69);
}
else if (client.Entity.MapID == 1735)
{
client.Entity.Teleport(1002, 427, 381);
}
else if (client.Entity.MapID == 2071)
{
client.Entity.Teleport(2071, 44, 130);
}
else if (client.Entity.MapID == 3691)
{
client.Entity.Teleport(1002, 300, 279);
}
else if (client.Entity.MapID == 3692)
{
client.Entity.Teleport(1002, 300, 279);
}
else if (client.Entity.MapID == 3693)
{
client.Entity.Teleport(1002, 300, 279);
}
else if (client.Entity.MapID == 7777)
{
client.Entity.Teleport(7777, 150, 164);
}
else if (client.Entity.MapID == 8883)
{
if (client.Entity.TeamDeathMatch_BlackTeam == true)
{
client.Entity.Teleport(8883, 042, 051);
}
if (client.Entity.TeamDeathMatch_BlueTeam == true)
{
client.Entity.Teleport(8883, 060, 042);
}
if (client.Entity.TeamDeathMatch_WhiteTeam == true)
{
client.Entity.Teleport(8883, 066, 064);
}
if (client.Entity.TeamDeathMatch_RedTeam == true)
{
client.Entity.Teleport(8883, 039, 036);
}
if (client.Entity.MapID == 10137)
{
client.Entity.Teleport(10137, 96, 411);
return;
}
}
else
{
if (ReviveHere && (client.Entity.HeavenBlessing > 0 || client.Entity.PKMode == Enums.PKMode.Jiang || client.Entity.JiangActive == true))
{
if (client.Entity.MapID == 3092)
{
client.Entity.Teleport(3090, 55, 72);
}
if (client.Map.BaseID == 3935)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 3872)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1506)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 700)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1004)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 3868)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1844)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 2071)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1507)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1013)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1801)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 9972)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 5000)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1508)
{
client.Entity.Teleport(1002, 300, 279);
}
////////////////////////////////////
///////////////////////////////////////////////////////////
if (Constants.revnomap.Contains(client.Entity.MapID))
{
client.Entity.Teleport(1002, 300, 279);
}
if (Constants.NoRevHere.Contains(client.Entity.MapID))
{
client.Entity.Teleport(1002, 300, 279);
}
if (Constants.NoHp.Contains(client.Entity.MapID))
{
client.Entity.Teleport(1002, 300, 279);
}
else
client.Entity.Teleport(client.Entity.MapID, client.Entity.X, client.Entity.Y, false);
//client.Send(new MapStatus() { BaseID = client.Map.BaseID, ID = client.Map.ID, Status = Database.MapsTable.MapInformations[client.Map.ID].Status, Weather = Database.MapsTable.MapInformations[client.Map.ID].Weather });
}
else
{
ushort[] Point = Database.DataHolder.FindReviveSpot(client.Map.ID);
client.Entity.Teleport(Point[0], Point[1], Point[2], false);
}
}
}
}
static void Revive(
static void Revive(Data generalData, Client.GameState client)
{
if (client.Entity.ContainsFlag(Update.Flags2.SoulShackle))
return;
if (client.InTeamQualifier())
return;
client.Entity.OnDeath = null;
if (Time32.Now >= client.Entity.DeathStamp.AddSeconds(18) && client.Entity.Dead)
{
client.Entity.Action = KhaledMohamed.Game.Enums.ConquerAction.None;
client.ReviveStamp = Time32.Now;
client.Attackable = false;
client.Entity.TransformationID = 0;
client.Entity.RemoveFlag(Update.Flags.Dead);
client.Entity.RemoveFlag(Update.Flags.Ghost);
client.Entity.Hitpoints = client.Entity.MaxHitpoints;
if (client.Entity.MapID == 1518)
{
client.Entity.Teleport(1002, 400, 400);
return;
}
bool ReviveHere = generalData.dwParam == 1;
if (client.Spells.ContainsKey(12660))
{
client.XPCount = client.Entity.XPCountTwist;
}
else if (client.Entity.MapID == 700)
{
client.Entity.Teleport(700, 51, 51);
}
if (client.Entity.MapID == 5555)
{
client.Entity.Teleport(5555, 39, 35);
}
if (client.Entity.MapID == 3868)
{
client.Entity.Teleport(3868, 227, 240);
}
if (client.Entity.MapID == 1038 && DateTime.Now.DayOfWeek == DayOfWeek.Friday)
{
client.Entity.Teleport(6001, 31, 74);
}
else if (client.Entity.MapID == 10380 && DateTime.Now.Day >= 27 && DateTime.Now.Day <= 29)
{
client.Entity.Teleport(1002, 300, 278);
}
else if (client.Entity.MapID == 1509)
{
client.Entity.Teleport(1509, 103, 43);
}
else if (client.Entity.MapID == 11024)
{
client.Entity.Teleport(11024, 303, 147);
}
else if (client.Entity.MapID == 11032)
{
client.Entity.Teleport(11032, 226, 227);
}
else if (client.Entity.MapID == 2014)
{
client.Entity.Teleport(2014, 150, 162);
}
else if (client.Entity.MapID == 2071 || client.Entity.MapID == 11022)
{
client.Entity.Teleport(client.Entity.MapID, 43, 129);
}
else if (client.Entity.MapID == 1730)
{
client.Entity.Teleport(1731, 59, 69);
}
else if (client.Entity.MapID == 1731)
{
client.Entity.Teleport(1732, 59, 69);
}
else if (client.Entity.MapID == 1732)
{
client.Entity.Teleport(1733, 59, 69);
}
else if (client.Entity.MapID == 1733)
{
client.Entity.Teleport(1734, 59, 69);
}
else if (client.Entity.MapID == 1734)
{
client.Entity.Teleport(1735, 59, 69);
}
else if (client.Entity.MapID == 1735)
{
client.Entity.Teleport(1002, 427, 381);
}
else if (client.Entity.MapID == 2071)
{
client.Entity.Teleport(2071, 44, 130);
}
else if (client.Entity.MapID == 3691)
{
client.Entity.Teleport(1002, 300, 279);
}
else if (client.Entity.MapID == 3692)
{
client.Entity.Teleport(1002, 300, 279);
}
else if (client.Entity.MapID == 3693)
{
client.Entity.Teleport(1002, 300, 279);
}
else if (client.Entity.MapID == 7777)
{
client.Entity.Teleport(7777, 150, 164);
}
else if (client.Entity.MapID == 8883)
{
if (client.Entity.TeamDeathMatch_BlackTeam == true)
{
client.Entity.Teleport(8883, 042, 051);
}
if (client.Entity.TeamDeathMatch_BlueTeam == true)
{
client.Entity.Teleport(8883, 060, 042);
}
if (client.Entity.TeamDeathMatch_WhiteTeam == true)
{
client.Entity.Teleport(8883, 066, 064);
}
if (client.Entity.TeamDeathMatch_RedTeam == true)
{
client.Entity.Teleport(8883, 039, 036);
}
if (client.Entity.MapID == 10137)
{
client.Entity.Teleport(10137, 96, 411);
return;
}
}
else
{
if (ReviveHere && (client.Entity.HeavenBlessing > 0 || client.Entity.PKMode == Enums.PKMode.Jiang || client.Entity.JiangActive == true))
{
if (client.Entity.MapID == 3092)
{
client.Entity.Teleport(3090, 55, 72);
}
if (client.Map.BaseID == 3935)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 3872)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1506)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 700)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1004)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 3868)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1844)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 2071)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1507)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1013)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1801)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 9972)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 5000)
{
client.Entity.Teleport(1002, 300, 279);
}
if (client.Map.BaseID == 1508)
{
client.Entity.Teleport(1002, 300, 279);
}
////////////////////////////////////
///////////////////////////////////////////////////////////
if (Constants.revnomap.Contains(client.Entity.MapID))
{
client.Entity.Teleport(1002, 300, 279);
}
if (Constants.NoRevHere.Contains(client.Entity.MapID))
{
client.Entity.Teleport(1002, 300, 279);
}
if (Constants.NoHp.Contains(client.Entity.MapID))
{
client.Entity.Teleport(1002, 300, 279);
}
else
client.Entity.Teleport(client.Entity.MapID, client.Entity.X, client.Entity.Y, false);
//client.Send(new MapStatus() { BaseID = client.Map.BaseID, ID = client.Map.ID, Status = Database.MapsTable.MapInformations[client.Map.ID].Status, Weather = Database.MapsTable.MapInformations[client.Map.ID].Weather });
}
else
{
ushort[] Point = Database.DataHolder.FindReviveSpot(client.Map.ID);
client.Entity.Teleport(Point[0], Point[1], Point[2], false);
}
}
}
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكلة ارجو حلها | kimooo1 | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2020-05-14 08:37 PM |
تعديل على صفحة التسجيل ارجو المساعدة بعد اذنكم | Abod ayman | مشكلات السيرفيرات كونكر الشخصيه | 5 | 2020-04-01 09:31 PM |
مشكلة كونكر تهيس ارجو الرد بعد اذنكم | Abod ayman | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2020-03-28 01:04 PM |
مشكلة خطيرة.... ارجو الدخول بسرعة | Mr3FreeT | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-05-06 01:06 AM |
(ارجو الافاده) ارجو المسعد | HBESA | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-04-28 07:29 AM |