|
المشاركات 265 |
+التقييم 0.13 |
تاريخ التسجيل Apr 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 98 |
if (information.WeaponSubtype.Count != 0)
switch (information.ID)
{
case 5010:
case 7020:
case 1290:
case 1260:
case 5030:
case 5040:
case 7000:
case 7010:
case 7030:
case 7040:
case 1250:
case 5050:
case 5020:
case 10490:
case 11140:
case 1300:
case 11990:
case 12110:
case 12240:
case 12230:
case 12220:
case 12210:
case 12570:
case 12580:
case 12590:
case 12600:
case 11230:
case 13040:
case 13050:
// if (spell.Distance >= 3)
// spell.Distance = 3;
// if (spell.Range > 3)
// spell.Range = 3;
for (int i = 0; i < information.WeaponSubtype.Count; i++)
{
var subtype = information.WeaponSubtype[i];
if (!WeaponSpells.ContainsKey(subtype))
WeaponSpells.Add(subtype, new List<ushort>());
if (!WeaponSpells[subtype].Contains(information.ID))
WeaponSpells[subtype].Add(information.ID);
}
break;
}
#region Up - Down Sweep & Strike
int rate = 0;
if (attacker.Owner.Spells.ContainsKey(10490)) rate = 100 - Database.SpellTable.GetSpell(10490, attacker.Owner).Percent;
if (Kernel.Rate(rate))
{
if (attack.SpellID >= 12580 && attack.SpellID <= 12600 && attacker.EpicMonk())
{
var spell = Database.SpellTable.GetSpell(attack.SpellID, attacker.Owner);
if (spell != null)
{
SpellUse suse = new SpellUse(true);
suse.Attacker = attacker.UID;
suse.SpellID = attack.SpellID;
suse.SpellLevel = spell.ID;
suse.X = attacker.X;
suse.Y = attacker.Y;
Fan fan = new Fan(attacker.X, attacker.Y, attacked.X, attacked.Y, spell.Range, spell.Sector);
foreach (Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
{
if (_obj == null) continue;
if (_obj.MapObjType == MapObjectType.Monster || _obj.MapObjType == MapObjectType.Entity)
{
attacked = _obj as Entity;
if (Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= 7)
{
if (CanAttack(attacker, attacked, null, attack.AttackType == Attack.Melee))
{
attack.Effect1 = Attack.AttackEffects1.None;
uint damages = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack);
damages = (damages * 22) / 100;
attack.Attacked = attacked.UID;
attack.Damage = damages;
suse.Effect1 = attack.Effect1;
suse.AddTarget(_obj, damages, attack);
ReceiveAttack(attacker, attacked, attack, ref damages, null);
}
}
}
}
attacker.SendScreen(suse);
attacker.AttackPacket = null;
return;
}
}
}
else if (attacker.Owner.Spells.ContainsKey(10490) && attacker.Monk())
{
var spell = Database.SpellTable.GetSpell(10490, attacker.Owner);
if (Kernel.Rate(spell.MonsterPower - 55) && attacker.Owner.Spells.ContainsKey(12570) && attacker.EpicMonk())
{
spell = Database.SpellTable.GetSpell(12570, attacker.Owner);
if (CanUseSpell(spell, attacker.Owner))
{
PrepareSpell(spell, attacker.Owner);
SpellUse suse2 = new SpellUse(true);
suse2.Attacker = attacker.UID;
suse2.SpellID = spell.ID;
suse2.SpellLevel = spell.Level;
if (attacked != null)
{
suse2.X = attacked.X;
suse2.Y = attacked.Y;
}
else
{
suse2.X = attackedsob.X;
suse2.Y = attackedsob.Y;
}
suse2.SpellEffect = 1;
foreach (Interfaces.IMapObject _obj in attacker.Owner.Screen.Objects)
{
if (_obj == null) continue;
if (_obj.MapObjType == MapObjectType.Monster)
{
attacked = _obj as Entity;
if (Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= spell.Range)
{
if (CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
{
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack);
damage = (damage * 22) / 100;
attack.Damage = 0;
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
suse2.AddTarget(attacked, damage, attack);
}
}
}
else if (_obj.MapObjType == MapObjectType.Entity)
{
attacked = _obj as Entity;
if (Kernel.GetDistance(attacker.X, attacker.Y, attacked.X, attacked.Y) <= spell.Range)
{
if (CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
{
uint damage = Game.Attacking.Calculate.Melee(attacker, attacked, spell, ref attack);
damage = (damage * 22) / 100;
attack.Damage = 0;
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
suse2.AddTarget(attacked, damage, attack);
}
}
}
else if (_obj.MapObjType == MapObjectType.SobNpc)
{
attackedsob = _obj as SobNpcSpawn;
if (Kernel.GetDistance(attacker.X, attacker.Y, attackedsob.X, attackedsob.Y) <= spell.Range)
{
if (CanAttack(attacker, attackedsob, spell))
{
uint damage = Game.Attacking.Calculate.Melee(attacker, attackedsob, ref attack);
damage = (damage * 22) / 100;
attack.Damage = 0;
ReceiveAttack(attacker, attackedsob, attack, damage, spell);
suse2.AddTarget(attackedsob, damage, attack);
}
}
}
}
attacker.Owner.SendScreen(suse2, true);
attacker.AttackPacket = null;
return;
}
}
else
{
if (CanUseSpell(spell, attacker.Owner))
{
PrepareSpell(spell, attacker.Owner);
TryTrip suse = new TryTrip(true);
suse.Attacker = attacker.UID;
suse.SpellID = spell.ID;
suse.SpellLevel = spell.Level;
// if (Kernel.GetDistance(attacker.X, attacker.Y, X, Y) <= attacker.AttackRange + 1)
{
if (attackedsob != null)
{
if (CanAttack(attacker, attackedsob, spell))
{
uint damage = Calculate.Melee(attacker, attackedsob, ref attack);
damage = (damage * 22) / 100;
suse.Attacked = attackedsob.UID;
attack.Damage = 0;
suse.Damage = damage;
ReceiveAttack(attacker, attackedsob, attack, damage, spell);
attacker.Owner.SendScreen(suse, true);
}
}
else
{
if (CanAttack(attacker, attacked, spell, attack.AttackType == Attack.Melee))
{
uint damage = Calculate.Melee(attacker, attacked, spell, ref attack);
damage = (damage * 22) / 100;
suse.Attacked = attacked.UID;
suse.Damage = damage;
attack.Damage = 0;
ReceiveAttack(attacker, attacked, attack, ref damage, spell);
attacker.Owner.SendScreen(suse, true);
}
}
attacker.AttackPacket = null; return;
}
}
}
attacker.AttackPacket = null;
return;
}
#endregion
#region Demha cj quest
case 121213:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Low M3ak [(200 DreamGrass - 200 Moss - 200 SoulAroma)] T2der Ta5d Mkanhom TokenChiFull Or TokenJiangEpic");
dialog.Option("Change", 12);
dialog.Option("Just passing by.", 255);
dialog.Send();
break;
}
case 12:
{
dialog.Option("( 200-200-200 ) For ChiFull.", 1);
dialog.Option("( 200-200-200 ) For JiangEpic.", 2);
dialog.Option("Just passing by.", 255);
dialog.Avatar(116);
dialog.Send();
break;
}
case 1:
{
if ((client.Inventory.Contains(722723, 200)) && (client.Inventory.Contains(722724, 200) && (client.Inventory.Contains(722725, 200))))
{
client.Inventory.Remove(722723, 200);
client.Inventory.Remove(722724, 200);
client.Inventory.Remove(722725, 200);
client.Inventory.Add(729690, 0, 1);
}
else
{
dialog.Text("Please take 200-200-200 To Prize TokenChiFull.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
case 2:
{
if ((client.Inventory.Contains(722723, 200)) && (client.Inventory.Contains(722724, 200) && (client.Inventory.Contains(722725, 200))))
{
client.Inventory.Remove(722723, 200);
client.Inventory.Remove(722724, 200);
client.Inventory.Remove(722725, 200);
client.Inventory.Add(729692, 0, 1);
}
else
{
dialog.Text("Please take 200-200-200 To Prize TokenJiangEpic.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
case 3:
{
if (client.Inventory.Contains(711897, 50))
{
client.Inventory.Remove(711897, 50);
client.Inventory.Add(3004122, 0, 1);
}
else
{
dialog.Text("Please take 50 LikeToken To Prize VIP 1 Day.");
dialog.Option("I see.", 255);
dialog.Avatar(116);
dialog.Send();
}
break;
}
}
break;
}
#endregion
#region new Quest
case 32421:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello " + client.Player.Name + " I Am Asm elquesta , do you want to began it ");
dialog.Option("Yes Please ", 1);
dialog.Send();
break;
}
case 1:
{
client.Player.Teleport(4325, 150, 150);
break;
}
}
break;
}
#endregion
4325 1858 7 0
monsterinfos
461 NewQuest 1 979 15432 0 946 855 0 1 10 1000 1000 92 3 500 0 5000 0 0 0 0 0 0
newmobspawn
461 NewQuest 4325 461 170 30 0 0 0 0
MonsterTable.cs
public static byte NewQuest = 0;
public void Drop
#region NewQuest
if (Name == "NewQuest")
{
if (killer.MapID == 4325)
{
if (NewQuest == 10)
{
uint ItemID = 0;
byte type1 = 1;
for (int i = 0; i < 1; i++)
{
type1 = (byte)Kernel.Random.Next(1, 3);
switch (type1)
{
case 1:
ItemID = 722724;
break;
case 2:
ItemID = 722725;
break;
case 3:
ItemID = 722723;
break;
}
NewQuest = 0;
killer.Owner.Inventory.Add(ItemID, 0, 1);
}
}
else
{
NewQuest++;
}
}
return;
}
#endregion
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
حل ثغرة انك ممكن تصحا في الكوسته قبل الوقت | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-09-26 10:25 PM |
جعل الكوسته لرتبه معينه | محمد ياسر | تطوير سيرفرات كونكر | 1 | 2019-05-30 09:53 PM |