|
المشاركات 71 |
+التقييم 0.04 |
تاريخ التسجيل Jun 2019 |
الاقامة |
نظام التشغيل |
رقم العضوية 252 |
public static bool Nemesis = true;
public static bool MohamedHossam = true;
SpawnNemesis = false,
MohamedHossam = false,
if (monster.Name
|| monster.Name == "MohamedHossam"
if (Name == "NemesisTyrant")
Program.Nemesis = true;
if (Name == "MohamedHossam")
Program.MohamedHossam = true;
Program.SnowSoul = true;
if (Name == "MohamedHossam")
{
killer.Owner.Entity.ConquerPoints += 50000; // دي جيزة ال يموت الوحش
HemaProject.Kernel.SendWorldMessage(new HemaProject.Network.GamePackets.Message(" Congratulations " + killer.Name + " Has Killed " + Name + " and Get [1M] ConquerPoints & [700] CpsBound fOR 7AZEM ", Message.Center));
return;
}
#region Dead Hearts g
case 1597534:
{
switch (npcRequest.OptionID)
{
case 0:
{
if (client.Entity.CodeWinner == 0)
{
dialog.Text("HI" + client.Entity.Name + " ANA A3RF ATLA3 EL WA7SH PTA3K | 7A OLT EA7?");
dialog.Option("TAL3 YA 3AM", 1);
dialog.Option("msh a4ta.", 255);
dialog.Send();
break;
}
else
{
dialog.Text("EMSHE MEN HENA YALA");
dialog.Option("Ok.", 255);
dialog.Send();
break;
}
break;
}
case 1:
{
#region MohamedHossam
{
ushort x = 0, y = 0;
ushort MapID = 11019;
y = 113;
x = 96;
if (Database.DMaps.LoadMap(MapID))
{
if (Program.MohamedHossam)
{
if (Kernel.Maps.ContainsKey(MapID))
{
var Map = Kernel.Maps[MapID];
if (Database.MonsterInformation.MonsterInformations.ContainsKey(417101))
{
Database.MonsterInformation mt = Database.MonsterInformation.MonsterInformations[417101];
mt.BoundX = x;
Program.MohamedHossam = 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)
{
client.Entity.CodeWinner += 1;
killer.Teleport(1002, 413, 353);
}
}
}
}
}
}
#endregion
}
break;
}
break;
}
#endregion
#region Dead Hearts
case 159753:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey There " + client.Entity.Name + " Do you here to do dally monster event ?");
dialog.Option("Yes", 1);
dialog.Option("I don't have item.", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.ramadanevent == 0)
{
client.Entity.RemoveFlag(Update.Flags.Ride);
client.Entity.Teleport(11019, 96, 113);
client.Entity.PKMode = Game.Enums.PKMode.PK;
client.Send(new Data(true) { UID = client.Entity.UID, ID = Data.ChangePKMode, dwParam = (uint)client.Entity.PKMode });
}
else
{
dialog.Text("ent 3malt elkwsta el yom t3al pokra");
dialog.Option("oh! i will return soon.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
هتخش علي
monsterinfos
--------------------
وتضيف دا
417101 MohamedHossam 1 523 60000000 0 5000 1000 900000 7 8 200 200 140 3 0 0 0 0 0 1
--------------------------
هتخش علي
Maps
---------------------------
وتضيف
11019 1507 7 0
------------------------------
وتخش علي
npcs
-------------------------------
وتضيف
231400 Dead Hearts 2 3690 1002 336 258
-----------------------------------------------------
2315009 Winner 2 36746 1019 84 112
----------------------------------------------------------
159753 Monster event 2 3690 1002 308 244
--------------------------------------------------------------
1597533 Exite 2 36746 11019 84 112
---------------------------------------------------------------
1597534 Genarator 2 36747 11019 96 113
---------------------------------------------------------------
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
أدوات الموضوع | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
كوستت دراجوونس | Hassan Emprator | تطوير سيرفرات كونكر | 9 | 2023-11-08 05:07 AM |
كوستة No Die | محمد ياسر | تطوير سيرفرات كونكر | 2 | 2023-10-18 02:34 AM |
كوستة Golden Secret | محمد ياسر | تطوير سيرفرات كونكر | 4 | 2023-05-25 12:11 PM |
كوستة الايبك | stevenayman1 | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-03-25 02:01 PM |
كوستة SwordWar | محمد ياسر | تطوير سيرفرات كونكر | 3 | 2019-06-25 11:54 AM |