المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : اضافة دراجون Twin City


محمد ياسر
2019-06-30, 08:12 AM
السلام عليكم ورحمة الله وبركاته
اكيد الكل عارف الدراجون الي في تون ستي
بس معظم الناس عندها مشاكل في انه مش بيظهر لما تدوس علي الايتم او لما تكلم الانبي سي الي جنبه علشان يطلع
نحل المشكله ده مع بعض
افتح Npcs.cs
#region DragonBill
case 180810:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Want to test your power and skill? i can spawm Great TreatoDragon only if you gived me 5 meteor and 1 dragonBill");
dialog.Option("yah sure i have it!", 1);
dialog.Option("whats? no thanks", 255);
dialog.Avatar(31);
dialog.Send();
break;
}
case 1:
{
if (client.Inventory.Contains(720598, 1) && client.Inventory.Contains(1088001, 5))
{
client.Inventory.Remove(720598, 1);
client.Inventory.Remove(1088001, 5);

Database.MonsterInformation monster = new Conquer_Online_Server.Database.MonsterInformation( );
monster.Boss = true;
monster.Hitpoints = 50000000;
monster.Level = 250;
monster.Mesh = 950;
monster.Name = "TeratoDragon";
monster.MaxAttack = 10500;
monster.AttackRange = 5;
monster.AttackType = 2;
monster.AttackSpeed = 1000;
monster.ViewRange = 2;
monster.MoveSpeed = 200;
monster.RunSpeed = 500;
monster.MinAttack = 59000;
Game.Entity entity = new Game.Entity(Game.EntityFlag.Monster, false);
entity.MapObjType = Game.MapObjectType.Monster;
entity.MonsterInfo = monster;
entity.MonsterInfo.Owner = entity;
entity.Name = "TeratoDragon";
entity.MinAttack = monster.MinAttack;
entity.MaxAttack = entity.MagicAttack = monster.MaxAttack;
entity.Hitpoints = entity.MaxHitpoints = monster.Hitpoints;
entity.Body = monster.Mesh;
entity.Level = monster.Level;
entity.Defence = 5000;
entity.X = client.Entity.X;
entity.Y = client.Entity.Y;
entity.UID = 500002;
entity.MapID = client.Entity.MapID;
entity.SendUpdates = true;
client.Map.RemoveEntity(entity);
client.Map.AddEntity(entity);
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "You must have 5 meteor and 1 dragonBill in your inventory."));
}

break;
}

}
break;
}
#endregion

وبس كده

MohamedModyAdel
2019-06-30, 11:50 AM
حلو

Users
2019-06-30, 12:21 PM
عاااااش