|
المشاركات 76 |
+التقييم 0.04 |
تاريخ التسجيل Aug 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 606 |
ushort rider;
rider = (ushort)(client.Player.UID - 1000000);
new Game.Map(rider, Database.DMaps.MapPaths[rider]);
if (DMaps.LoadMap(rider))
{
#region NemesisTyrant
if ((DateTime.Now.Minute == 28 && DateTime.Now.Second == 05))
{
ushort x = 0, y = 0;
ushort MapID = rider;
y = 293;
x = 281;
uint id = 4220;
string name = "NemesisTyrant";
if (Database.DMaps.LoadMap(MapID))
{
var Map = Kernel.Maps[MapID];
if (Database.MonsterInformation.MonsterInformations.ContainsKey(id))
{
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[id];
mt.BoundX = x;
Program.Nemesis = false;
mt.BoundY = y;
mt.RespawnTime = 36000;
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.Player.X, clllient.Player.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);
}
}
}
}
}
}
}
#endregion
client.Player.Teleport(rider, 50, 50);
}
ushort rider;
rider = (ushort)(client.player.uid - 1000000);
new game.map(rider, database.dmaps.mappaths[rider]);
if (dmaps.loadmap(rider))
{
#region nemesistyrant
if ((datetime.now.minute == 28 && datetime.now.second == 05))
{
ushort x = 0, y = 0;
ushort mapid = rider;
y = 293;
x = 281;
uint id = 4220;
string name = "nemesistyrant";
if (database.dmaps.loadmap(mapid))
{
var map = kernel.maps[mapid];
if (database.monsterinformation.monsterinformations.containskey(id))
{
database.monsterinformation mt = database.monsterinformation.monsterinformations[id];
mt.boundx = x;
program.nemesis = false;
mt.boundy = y;
mt.respawntime = 36000;
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.player.x, clllient.player.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);
}
}
}
}
}
}
}
#endregion
client.player.teleport(rider, 50, 50);
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
محتاج انبسى مهم | disco0o | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2021-07-28 06:01 PM |
عوز انبسي بي اصطف +12 | احمد التركي | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2020-05-08 02:50 AM |
انبسي Sell_Money_For_Cps | Amr Khalid | تطوير سيرفرات كونكر | 0 | 2020-04-01 02:27 AM |
عوز انبسي اسطف | Amr Khalid | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2019-11-26 10:20 PM |
عوز انبسي انلاين بينت | Amr Khalid | مشكلات السيرفيرات كونكر الشخصيه | 1 | 2019-11-26 09:26 AM |