محمد ياسر
2019-04-24, 09:45 AM
النهرده معانا حل للسبيد هاك
اي حد يستخددمه
اميله هينهج ويقفل
يتعمله
DISSCONICUT
نخوش في الموضوع
هتخوش علي
GeneralData
وتدور علي
if (!client.Entity.HasMagicDefender)
وضيف الكود دا فوقه
client.Entity.Action = Enums.ConquerAction.None;
client.Mining = false;
if (client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.CastPray))
{
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags. CastPray);
foreach (var Client in client.Prayers)
{
if (Client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.Praying))
{
Client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags. Praying);
}
}
client.Prayers.Clear();
}
if (client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.Praying))
{
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags. Praying);
client.PrayLead = null;
}
Time32 Now = Time32.Now;
client.Attackable = true;
if (client.Entity.AttackPacket != null)
{
client.Entity.AttackPacket = null;
}
if (client.Entity.Dead)
{
if (Now > client.Entity.DeathStamp.AddSeconds(4))
{
client.Disconnect();
return;
}
}
ushort new_X = BitConverter.ToUInt16(generalData.ToArray(), 12);
ushort new_Y = BitConverter.ToUInt16(generalData.ToArray(), 14);
if (client.Entity.MapID == 1038)
{
if (!(client.Entity.X < 224 && client.Entity.X > 3 && client.Entity.Y < 211 && client.Entity.Y > 3))
{
if (new_X < 224 && new_Y < 211)
{
if (Kernel.GetDistance(client.Entity.X, client.Entity.Y, Game.GuildWar.LeftGate.X, Game.GuildWar.LeftGate.Y) < Kernel.GetDistance(client.Entity.X, client.Entity.Y, Game.GuildWar.RightGate.X, Game.GuildWar.RightGate.Y) ||
Kernel.GetDistance(client.Entity.X, client.Entity.Y, Game.SuperGuildWar.LeftGate.X, Game.SuperGuildWar.LeftGate.Y) < Kernel.GetDistance(client.Entity.X, client.Entity.Y, Game.SuperGuildWar.RightGate.X, Game.SuperGuildWar.RightGate.Y))
{
if (Game.GuildWar.LeftGate.Mesh == (ushort)(240 + Game.GuildWar.LeftGate.Mesh % 10) ||
Game.SuperGuildWar.LeftGate.Mesh == (ushort)(240 + Game.SuperGuildWar.LeftGate.Mesh % 10))
{
client.Entity.Teleport(client.Entity.X, client.Entity.Y);
client.Send(new Message("Invalid Jump!", Color.Red, Message.Talk));
return;
}
}
else
{
if (Game.GuildWar.RightGate.Mesh == (ushort)(270 + Game.GuildWar.RightGate.Mesh % 10) ||
Game.SuperGuildWar.RightGate.Mesh == (ushort)(270 + Game.SuperGuildWar.RightGate.Mesh % 10))
{
client.Entity.Teleport(client.Entity.X, client.Entity.Y);
client.Send(new Message("Invalid Jump!", Color.Red, Message.Talk));
return;
}
}
}
}
}
//if (client.Entity.MapID == 1002)
//{
// if (new_X == 310 && new_Y == 277)
// {
// if (client.Entity.EntityFlag == Game.EntityFlag.Player)
// {
// _String str = new _String(true);
// str.UID = client.Entity.UID;
// str.TextsCount = 1;
// str.Type = _String.Effect;
// str.Texts.Add("firemagic");
// client.SendScreen(str, true);
// }
// }
//}
if (client.lastJumpDistance == 0) goto Jump;
if (client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.Ride))
{
int distance = Kernel.GetDistance(new_X, new_Y, client.Entity.X, client.Entity.Y);
ushort take = (ushort)(1.5F * (distance / 2));
if (client.Vigor >= take)
{
client.Vigor -= take;
Vigor vigor = new Vigor(true);
vigor.Amount = client.Vigor;
vigor.Send(client);
}
else
{
//client.Entity.Shift(client.Entity.X, client.Entity.Y);
//return;
}
}
client.LastJumpTime = (int)Kernel.maxJumpTime(client.lastJumpDistance);
int a1 = Now.GetHashCode() - client.lastJumpTime.GetHashCode();
int a2 = generalData.TimeStamp.GetHashCode() - client.lastClientJumpTime.GetHashCode();
bool DOO = false;
if (a2 - a1 > 1000) DOO = true;
if (Now < client.lastJumpTime.AddMilliseconds(client.LastJum pTime))
{
bool doDisconnect = false;
if (client.Entity.Transformed)
if (client.Entity.TransformationID != 207 && client.Entity.TransformationID != 267)
doDisconnect = true;
if (client.Entity.Transformed && doDisconnect)
{
//client.Entity.Shift(client.Entity.X, client.Entity.Y);
//return;
}
if (client.Entity.Transformed && !doDisconnect)
{
goto Jump;
}
if (!client.Entity.OnCyclone() && !client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.Ride) && DOO)
{
client.Disconnect(true);
Console.WriteLine("Speed Hack Detected : " + client.Entity.Name + "");
}
else if (client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.Ride))
{
int time = (int)Kernel.maxJumpTime(client.lastJumpDistance);
int speedprc = Database.DataHolder.SteedSpeed(client.Equipment.Tr yGetItem(ConquerItem.Steed).Plus);
if (speedprc != 0)
{
if (Now < client.lastJumpTime.AddMilliseconds(time - (time * speedprc / 100)))
{
//client.Entity.Shift(client.Entity.X, client.Entity.Y);
//return;
}
}
else
{
//client.Entity.Shift(client.Entity.X, client.Entity.Y);
//return;
}
}
}
Jump:
client.lastJumpDistance = Kernel.GetDistance(new_X, new_Y, client.Entity.X, client.Entity.Y);
client.lastClientJumpTime = generalData.TimeStamp;
client.lastJumpTime = Now;
Game.Map Map = client.Map;
client.LastClientJump = generalData.TimeStamp;
if (Map != null)
{
if (Map.Floor[new_X, new_Y, Game.MapObjectType.Player, null])
{
if (Kernel.GetDistance(new_X, new_Y, client.Entity.X, client.Entity.Y) <= 20)
{
client.Entity.Action = Game.Enums.ConquerAction.Jump;
client.Entity.Facing = Kernel.GetAngle(generalData.wParam1, generalData.wParam2, new_X, new_Y);
client.Entity.PX = client.Entity.X;
client.Entity.PY = client.Entity.Y;
client.Entity.X = new_X;
client.Entity.Y = new_Y;
if (client.Entity.MapID == CaptureTheFlag.MapID)
CheckForFlag(client);
client.SendScreen(generalData, true);
client.Screen.Reload(generalData);
if (client.Entity.InteractionInProgress && client.Entity.InteractionSet)
{
if (client.Entity.Body == 1003 || client.Entity.Body == 1004)
{
if (Kernel.GamePool.ContainsKey(client.Entity.Interac tionWith))
{
GameState ch = Kernel.GamePool[client.Entity.InteractionWith];
Network.GamePackets.Data general = new Network.GamePackets.Data(true);
general.UID = ch.Entity.UID;
general.wParam1 = new_X;
general.wParam2 = new_Y;
general.ID = 156;
ch.Send(general.ToArray());
ch.Entity.Action = Game.Enums.ConquerAction.Jump;
ch.Entity.X = new_X;
ch.Entity.Y = new_Y;
ch.Entity.Facing = Kernel.GetAngle(ch.Entity.X, ch.Entity.Y, new_X, new_Y);
ch.SendScreen(generalData, true);
ch.Screen.Reload(general);
client.SendScreen(generalData, true);
client.Screen.Reload(general);
}
}
}
}
else
{
client.Disconnect();
}
}
else
{
if (client.Entity.Mode == Game.Enums.Mode.None)
{
client.Entity.Teleport(client.Map.ID, client.Entity.X, client.Entity.Y);
}
}
}
else
{
if (Kernel.GetDistance(new_X, new_Y, client.Entity.X, client.Entity.Y) <= 20)
{
client.Entity.Action = Game.Enums.ConquerAction.Jump;
client.Entity.Facing = Kernel.GetAngle(generalData.wParam1, generalData.wParam2, new_X, new_Y);
client.Entity.X = new_X;
client.Entity.Y = new_Y;
client.SendScreen(generalData, true);
client.Screen.Reload(generalData);
}
else
{
client.Disconnect();
}
}
if (client.Map.BaseID == 1038 && Game.GuildWar.IsWar || client.Entity.MapID == 1234 && Game.SuperGuildWar.IsWar)
{
Game.Calculations.IsBreaking(client, oldX, oldY);
}
اي حد يستخددمه
اميله هينهج ويقفل
يتعمله
DISSCONICUT
نخوش في الموضوع
هتخوش علي
GeneralData
وتدور علي
if (!client.Entity.HasMagicDefender)
وضيف الكود دا فوقه
client.Entity.Action = Enums.ConquerAction.None;
client.Mining = false;
if (client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.CastPray))
{
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags. CastPray);
foreach (var Client in client.Prayers)
{
if (Client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.Praying))
{
Client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags. Praying);
}
}
client.Prayers.Clear();
}
if (client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.Praying))
{
client.Entity.RemoveFlag((ulong)FlagsUpdate.Flags. Praying);
client.PrayLead = null;
}
Time32 Now = Time32.Now;
client.Attackable = true;
if (client.Entity.AttackPacket != null)
{
client.Entity.AttackPacket = null;
}
if (client.Entity.Dead)
{
if (Now > client.Entity.DeathStamp.AddSeconds(4))
{
client.Disconnect();
return;
}
}
ushort new_X = BitConverter.ToUInt16(generalData.ToArray(), 12);
ushort new_Y = BitConverter.ToUInt16(generalData.ToArray(), 14);
if (client.Entity.MapID == 1038)
{
if (!(client.Entity.X < 224 && client.Entity.X > 3 && client.Entity.Y < 211 && client.Entity.Y > 3))
{
if (new_X < 224 && new_Y < 211)
{
if (Kernel.GetDistance(client.Entity.X, client.Entity.Y, Game.GuildWar.LeftGate.X, Game.GuildWar.LeftGate.Y) < Kernel.GetDistance(client.Entity.X, client.Entity.Y, Game.GuildWar.RightGate.X, Game.GuildWar.RightGate.Y) ||
Kernel.GetDistance(client.Entity.X, client.Entity.Y, Game.SuperGuildWar.LeftGate.X, Game.SuperGuildWar.LeftGate.Y) < Kernel.GetDistance(client.Entity.X, client.Entity.Y, Game.SuperGuildWar.RightGate.X, Game.SuperGuildWar.RightGate.Y))
{
if (Game.GuildWar.LeftGate.Mesh == (ushort)(240 + Game.GuildWar.LeftGate.Mesh % 10) ||
Game.SuperGuildWar.LeftGate.Mesh == (ushort)(240 + Game.SuperGuildWar.LeftGate.Mesh % 10))
{
client.Entity.Teleport(client.Entity.X, client.Entity.Y);
client.Send(new Message("Invalid Jump!", Color.Red, Message.Talk));
return;
}
}
else
{
if (Game.GuildWar.RightGate.Mesh == (ushort)(270 + Game.GuildWar.RightGate.Mesh % 10) ||
Game.SuperGuildWar.RightGate.Mesh == (ushort)(270 + Game.SuperGuildWar.RightGate.Mesh % 10))
{
client.Entity.Teleport(client.Entity.X, client.Entity.Y);
client.Send(new Message("Invalid Jump!", Color.Red, Message.Talk));
return;
}
}
}
}
}
//if (client.Entity.MapID == 1002)
//{
// if (new_X == 310 && new_Y == 277)
// {
// if (client.Entity.EntityFlag == Game.EntityFlag.Player)
// {
// _String str = new _String(true);
// str.UID = client.Entity.UID;
// str.TextsCount = 1;
// str.Type = _String.Effect;
// str.Texts.Add("firemagic");
// client.SendScreen(str, true);
// }
// }
//}
if (client.lastJumpDistance == 0) goto Jump;
if (client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.Ride))
{
int distance = Kernel.GetDistance(new_X, new_Y, client.Entity.X, client.Entity.Y);
ushort take = (ushort)(1.5F * (distance / 2));
if (client.Vigor >= take)
{
client.Vigor -= take;
Vigor vigor = new Vigor(true);
vigor.Amount = client.Vigor;
vigor.Send(client);
}
else
{
//client.Entity.Shift(client.Entity.X, client.Entity.Y);
//return;
}
}
client.LastJumpTime = (int)Kernel.maxJumpTime(client.lastJumpDistance);
int a1 = Now.GetHashCode() - client.lastJumpTime.GetHashCode();
int a2 = generalData.TimeStamp.GetHashCode() - client.lastClientJumpTime.GetHashCode();
bool DOO = false;
if (a2 - a1 > 1000) DOO = true;
if (Now < client.lastJumpTime.AddMilliseconds(client.LastJum pTime))
{
bool doDisconnect = false;
if (client.Entity.Transformed)
if (client.Entity.TransformationID != 207 && client.Entity.TransformationID != 267)
doDisconnect = true;
if (client.Entity.Transformed && doDisconnect)
{
//client.Entity.Shift(client.Entity.X, client.Entity.Y);
//return;
}
if (client.Entity.Transformed && !doDisconnect)
{
goto Jump;
}
if (!client.Entity.OnCyclone() && !client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.Ride) && DOO)
{
client.Disconnect(true);
Console.WriteLine("Speed Hack Detected : " + client.Entity.Name + "");
}
else if (client.Entity.ContainsFlag((ulong)FlagsUpdate.Fla gs.Ride))
{
int time = (int)Kernel.maxJumpTime(client.lastJumpDistance);
int speedprc = Database.DataHolder.SteedSpeed(client.Equipment.Tr yGetItem(ConquerItem.Steed).Plus);
if (speedprc != 0)
{
if (Now < client.lastJumpTime.AddMilliseconds(time - (time * speedprc / 100)))
{
//client.Entity.Shift(client.Entity.X, client.Entity.Y);
//return;
}
}
else
{
//client.Entity.Shift(client.Entity.X, client.Entity.Y);
//return;
}
}
}
Jump:
client.lastJumpDistance = Kernel.GetDistance(new_X, new_Y, client.Entity.X, client.Entity.Y);
client.lastClientJumpTime = generalData.TimeStamp;
client.lastJumpTime = Now;
Game.Map Map = client.Map;
client.LastClientJump = generalData.TimeStamp;
if (Map != null)
{
if (Map.Floor[new_X, new_Y, Game.MapObjectType.Player, null])
{
if (Kernel.GetDistance(new_X, new_Y, client.Entity.X, client.Entity.Y) <= 20)
{
client.Entity.Action = Game.Enums.ConquerAction.Jump;
client.Entity.Facing = Kernel.GetAngle(generalData.wParam1, generalData.wParam2, new_X, new_Y);
client.Entity.PX = client.Entity.X;
client.Entity.PY = client.Entity.Y;
client.Entity.X = new_X;
client.Entity.Y = new_Y;
if (client.Entity.MapID == CaptureTheFlag.MapID)
CheckForFlag(client);
client.SendScreen(generalData, true);
client.Screen.Reload(generalData);
if (client.Entity.InteractionInProgress && client.Entity.InteractionSet)
{
if (client.Entity.Body == 1003 || client.Entity.Body == 1004)
{
if (Kernel.GamePool.ContainsKey(client.Entity.Interac tionWith))
{
GameState ch = Kernel.GamePool[client.Entity.InteractionWith];
Network.GamePackets.Data general = new Network.GamePackets.Data(true);
general.UID = ch.Entity.UID;
general.wParam1 = new_X;
general.wParam2 = new_Y;
general.ID = 156;
ch.Send(general.ToArray());
ch.Entity.Action = Game.Enums.ConquerAction.Jump;
ch.Entity.X = new_X;
ch.Entity.Y = new_Y;
ch.Entity.Facing = Kernel.GetAngle(ch.Entity.X, ch.Entity.Y, new_X, new_Y);
ch.SendScreen(generalData, true);
ch.Screen.Reload(general);
client.SendScreen(generalData, true);
client.Screen.Reload(general);
}
}
}
}
else
{
client.Disconnect();
}
}
else
{
if (client.Entity.Mode == Game.Enums.Mode.None)
{
client.Entity.Teleport(client.Map.ID, client.Entity.X, client.Entity.Y);
}
}
}
else
{
if (Kernel.GetDistance(new_X, new_Y, client.Entity.X, client.Entity.Y) <= 20)
{
client.Entity.Action = Game.Enums.ConquerAction.Jump;
client.Entity.Facing = Kernel.GetAngle(generalData.wParam1, generalData.wParam2, new_X, new_Y);
client.Entity.X = new_X;
client.Entity.Y = new_Y;
client.SendScreen(generalData, true);
client.Screen.Reload(generalData);
}
else
{
client.Disconnect();
}
}
if (client.Map.BaseID == 1038 && Game.GuildWar.IsWar || client.Entity.MapID == 1234 && Game.SuperGuildWar.IsWar)
{
Game.Calculations.IsBreaking(client, oldX, oldY);
}