07-21-2012, 03:42 PM
|
#1 (permalink)
|
| ان بى سى بيطلع التريتو دراجون لكلينت 5530 بسم الله الرحمن الرحيم,,
(()) (ان بي سي بيطلع التريتو دراجون للكلينتات الجديدة) كود: 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 = 140;
monster.Mesh = 950;
monster.Name = "TeratoDragon";
monster.MaxAttack = 10500;
monster.AttackRange = 5;
monster.AttackType = 2;
monster.AttackSpeed = 1000;
monster.ViewRange = 2;
monster.MoveSpeed = 500;
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);
Network.GamePackets._String stringPacket = new Conquer_Online_Server.Network.GamePackets._String(true);
stringPacket.UID = entity.UID;
stringPacket.Type = Network.GamePackets._String.Effect;
stringPacket.Texts.Add("MBStandard");
entity.SetFlag(0, 0);
var varr = ServerBase.Kernel.GamePool.Values.GetEnumerator();
varr.MoveNext();
int COunt = ServerBase.Kernel.GamePool.Count;
for (uint x = 0;
x < COunt;
x++)
{
if (x >= COunt) break;
Client.GameState aclient = (varr.Current as Client.GameState);
if (ServerBase.Kernel.GetDistance(client.Entity.X, client.Entity.Y, entity.X, entity.Y) < ServerBase.Constants.nScreenDistance)
{
entity.CauseOfDeathIsMagic = false;
aclient.Entity.Teleport(aclient.Entity.X, aclient.Entity.Y);
aclient.Send(stringPacket);
}
varr.MoveNext();
}
Conquer_Online_Server.ServerBase.Kernel.Terato_open = true;
client.Send(new Network.GamePackets.NpcReply(6, "Gratz you Spamwed TreatoDragon hurry kill it."));
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "You must have 5 meteor and 1 dragonBill in your inventory."));
}
break;
}
}
دا علي النافيكات كود: 180810 DragonBillQWuest 2 8630 1002 567 790 في امان الله 5530, لكلينت, التريتو, بيطلع, دراجون |
| |