SwordMaster Boss
Página 1 de 1
SwordMaster Boss
PacketHandler.cs
MonsterTable.cs
- Código:
#region SwordMaster Open
case 720842:// SwordMaster By Moamen
{
if (client.Entity.MapID == 3024)
{
Database.MonsterInformation monster = new Database.MonsterInformation();
monster.Hitpoints = 15000000;
monster.Level = 200;
monster.Mesh = 953;
monster.Name = "SwordMaster";
monster.MaxAttack = 1000;
monster.AttackRange = 10;
monster.AttackType = 2;
monster.SpellID = 10500;
monster.AttackSpeed = 3000;
monster.ViewRange = 5;
monster.MoveSpeed = 500;
monster.RunSpeed = 500;
monster.MinAttack = 1000;
Game.Entity entity = new Game.Entity(Game.EntityFlag.Monster, false);
entity.MapObjType = Game.MapObjectType.Monster;
entity.MonsterInfo = monster;
entity.MonsterInfo.Owner = entity;
entity.Name = "SwordMaster";
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 = 50000;
entity.X = (ushort)(client.Entity.X - 2);
entity.Y = (ushort)(client.Entity.Y - 2);
entity.EntityFlag = Game.EntityFlag.Monster;
entity.UID = (uint)Kernel.Random.Next(500060, 500110);
entity.MapID = client.Entity.MapID;
entity.SendUpdates = true;
client.Map.RemoveEntity(entity);
Network.GamePackets._String stringPacket = new Network.GamePackets._String(true);
stringPacket.UID = monster.ID;
stringPacket.Type = Network.GamePackets._String.Effect;
stringPacket.Texts.Add("MBStandard");
client.Map.AddEntity(entity);
client.Inventory.Remove(item, Enums.ItemUse.Remove);
break;
}
else
{
client.Send(new Network.GamePackets.Message("You Can't open here Sorry By Moamen!", System.Drawing.Color.Red, 0x7dc));
return;
}
}
#endregion
MonsterTable.cs
- Código:
#region SwordMaster
if (Name == "SwordMaster")
{
uint ItemID = 0;
byte type1 = 30;
for (int i = 0; i < 12; i++)
{
type1 = (byte)Kernel.Random.Next(1, 30);
switch (type1)
{
case 1:
ItemID = 730004;
break;
case 2:
ItemID = 730004;
break;
case 3:
ItemID = 730004;
break;
case 4:
ItemID = 730004;
break;
case 5:
ItemID = 730005;
break;
case 6:
ItemID = 730005;
break;
case 7:
ItemID = 200407;
break;
case 8:
ItemID = 200110;
break;
case 9:
ItemID = 200109;
break;
case 10:
ItemID = 200106;
break;
case 11:
ItemID = 720028;
break;
case 12:
ItemID = 720028;
break;
case 13:
ItemID = 720884;
break;
case 14:
ItemID = 720884;
break;
case 15:
ItemID = 720884;
break;
case 16:
ItemID = 1088000;
break;
case 17:
ItemID = 1088000;
break;
case 18:
ItemID = 1088000;
break;
case 19:
ItemID = 1088000;
break;
case 20:
ItemID = 1088000;
break;
case 21:
ItemID = 723341;
break;
case 22:
ItemID = 723341;
break;
case 23:
ItemID = 723341;
break;
case 24:
ItemID = 723341;
break;
case 25:
ItemID = 723342;
break;
case 26:
ItemID = 723342;
break;
case 27:
ItemID = 723342;
break;
case 28:
ItemID = 200011;
break;
case 29:
ItemID = 200009;
break;
case 30:
ItemID = 200008;
break;
}
var infos = Database.ConquerItemInformation.BaseInformations[ItemID];
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.Item = new Network.GamePackets.ConquerItem(true);
floorItem.Item.Color = (Conquer_Online_Server.Game.Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = ItemID;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MaximDurability = infos.Durability;
floorItem.Item.Durability = infos.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = ItemID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
Map.AddFloorItem(floorItem);
SendScreenSpawn(floorItem);
}
}
Kernel.Spawn = false;
killer.SubClasses.StudyPoints += 1000;
killer.ConquerPoints += 100000;
Conquer_Online_Server.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Congratulations! " + killer.Name + " Has Killed " + Name + "and 100k Cps dropped A Rar Items!", Message.TopLeft));
return;
}
#endregion
Tópicos semelhantes
» Boss SwordMaster SnowBanshee e mas
» [RELEASE] SnowBanshee, ThrillingSpook e SwordMaster e Pacth
» Boss lookface de Montarias
» Como Fazer Um Boss Conquer 5700 a 58XX
» [RELEASE] SnowBanshee, ThrillingSpook e SwordMaster e Pacth
» Boss lookface de Montarias
» Como Fazer Um Boss Conquer 5700 a 58XX
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos