|
المشاركات 83 |
+التقييم 0.05 |
تاريخ التسجيل Apr 2020 |
الاقامة |
نظام التشغيل |
رقم العضوية 3692 |
#region Prites PK[T] Pk//[00:36]
if (DateTime.Now.Minute == 35 && Now64.Second == 58)
{
Kernel.SendWorldMessage(new Message(" Prites PK [T] Has Started , Get Ready To Join !", Color.White, Message.Center), Program.Values);
foreach (var client in Program.Values)
client.MessageBox(" Prites PK [T] Pk Has Began , Would You like to Join?",
(p) => { p.Entity.Teleport(1002, 296, 266); }, null, 60);
}
#endregion
Prites PK
if (DateTime.Now.Minute == 35 && Now64.Second == 58)
#region Legendarywarrior [xx:08]
if ((DateTime.Now.Minute == 08 && DateTime.Now.Second == 58))
{
ushort x = 0, y = 0;
ushort MapID = 39990;
y = 55;
x = 55;
uint id = 417110;
string name = "Legendarywarrior";
if (Database.DMaps.LoadMap(MapID))
{
if (Program.Legendary)
{
if (Kernel.Maps.ContainsKey(MapID))
{
var Map = Kernel.Maps[MapID];
if (Database.MonsterInformation.MonsterInformations.ContainsKey(id))
{
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
mt.BoundX = x;
Program.Legendary = false;
mt.BoundY = y;
Entity entity = new Entity(EntityFlag.Monster, false);
entity.MapObjType = MapObjectType.Monster;
entity.MonsterInfo = mt.Copy();
entity.MonsterInfo.Owner = entity;
entity.Name = mt.Name;
entity.MinAttack = mt.MinAttack;
entity.MaxAttack = entity.MagicAttack = mt.MaxAttack;
entity.Hitpoints = entity.MaxHitpoints = mt.Hitpoints;
entity.Defence = mt.Defence;
entity.Body = mt.Mesh;
entity.Level = mt.Level;
entity.UID = Map.EntityUIDCounter.Next;
entity.MapID = MapID;
entity.X = x;
entity.Boss = 1;
entity.Y = y;
if (x == 0 || y == 0)
{
var cord = Map.RandomCoordinates();
entity.X = cord.Item1;
entity.Y = cord.Item2;
do
{
cord = Map.RandomCoordinates();
entity.X = cord.Item1;
entity.Y = cord.Item2;
}
while (!Map.Floor[entity.X, entity.Y, MapObjectType.Monster]);
}
Map.AddEntity(entity);
Network.GamePackets._String stringPacket =
new Network.GamePackets._String(true);
stringPacket.UID = entity.UID;
stringPacket.Type = Network.GamePackets._String.Effect;
stringPacket.Texts.Add("MBStandard");
Data data = new Data(true);
data.UID = entity.UID;
data.ID = Network.GamePackets.Data.AddEntity;
data.wParam1 = entity.X;
data.wParam2 = entity.Y;
foreach (Client.GameState clllient in Program.Values)
{
if (clllient.Map.ID == entity.MapID)
{
if (Kernel.GetDistance(clllient.Entity.X, clllient.Entity.Y, entity.X, entity.Y) <
Constants.nScreenDistance)
{
entity.SendSpawn(clllient, false);
clllient.Send(stringPacket);
clllient.Send(data);
if (entity.MaxHitpoints > 65535)
{
Update upd = new Update(true) { UID = entity.UID };
upd.Append(Update.MaxHitpoints, entity.MaxHitpoints);
upd.Append(Update.Hitpoints, entity.Hitpoints);
clllient.Send(upd);
}
}
}
}
foreach (var client10 in Program.Values)
{
client10.Entity.SendSysMessage(name + " has appeared. Hurry and go defeat the beast!");
client10.MessageBox(name + " has appeared Would you Want to Kill-Monster?",
(p) => { p.Entity.Teleport(MapID, x, y); }, null, 20);
}
}
}
}
}
}
#endregion