|
المشاركات 1,991 |
+التقييم 1.03 |
تاريخ التسجيل Jun 2019 |
الاقامة |
نظام التشغيل ويندوز 0 |
رقم العضوية 279 |
#region AutoHunting (1070)
case 1070:
{
if (client.Entity.Auto == false && client.Entity.Level < 130)
{
client.Send(new Network.GamePackets.NpcReply(6, "Sorry To You Should Have Level 130 To Run Auto Hunting !"));
return;
}
AutoHunt auto = new AutoHunt(false);
auto.Deserialize(packet);
switch (auto.Type)
{
case AutoHunt.Icon:
{
auto = new AutoHunt(true);
auto.Type = 0;
auto.Show = 341;
client.Send(auto);
return;
}
case AutoHunt.Start:
{
auto = new AutoHunt(true);
auto.Type = 1;
client.Send(auto);
client.Entity.Auto = true;
client.Entity.AddFlag3(Update.Flags3.AutoHunting);
return;
}
case AutoHunt.Gui:
{
auto = new AutoHunt(true);
auto.Type = 2;
auto.EXP = (ushort)client.Entity.autohuntxp;
client.Send(auto);
return;
}
case AutoHunt.End:
{
auto = new AutoHunt(true);
auto.Type = 3;
client.Entity.Auto = false;
client.Entity.autohuntxp = 0;
client.Entity.RemoveFlag3(Update.Flags3.AutoHunting);
client.Send(auto);
return;
}
}
return;
}
#endregion AutoHunting (1070)
if (!pass && attack.AttackType != Attack.Magic)
{
int milliSeconds = 1000 - attacker.Agility - decrease;
if (milliSeconds < 0 || milliSeconds > 5000)
milliSeconds = 0;
if (!pass && attack.AttackType != Attack.Magic)
{
int milliSeconds = 1000 - attacker.Agility - decrease;
if (milliSeconds < 0 || milliSeconds > 5000)
milliSeconds = 0;
if (Time32.Now < attacker.AttackStamp.AddMilliseconds(milliSeconds))
return;
attacker.AttackStamp = Time32.Now;
}
if (!pass && attack.AttackType == Attack.Magic)
if (!pass && attack.AttackType == Attack.Magic)
{
if (!(doWep1Spell || doWep2Spell))
{
if (SpellID == 11960 || SpellID == 1045 || SpellID == 1046 || SpellID == 11005 || SpellID == 11000 || SpellID == 1100) // FB and SS
{
//do checks
}
else
{
int milliSeconds = 1000 - attacker.Agility - decrease;
if (milliSeconds < 0 || milliSeconds > 5000)
milliSeconds = 0;
if (Time32.Now < attacker.AttackStamp.AddMilliseconds(milliSeconds))
return;
}
attacker.AttackStamp = Time32.Now;
}
}
if (!pass && attack.AttackType == Attack.Magic)
{
if (!(doWep1Spell || doWep2Spell))
{
if (SpellID == 11960 || SpellID == 1045 || SpellID == 1046 || SpellID == 11005 || SpellID == 11000 || SpellID == 1100) // FB and SS
{
//do checks
}
attacker.AttackStamp = Time32.Now;
}
}