|
المشاركات 265 |
+التقييم 0.16 |
تاريخ التسجيل Nov 2019 |
الاقامة في ارض الله |
نظام التشغيل ادد معرفة |
رقم العضوية 2636 |
static void UsePortal(Data generalData, Client.GameState client)
{
client.Entity.Action = KhaledMohamed.Game.Enums.ConquerAction.None;
client.ReviveStamp = Time32.Now;
client.Attackable = false;
ushort portal_X = (ushort)(generalData.dwParam & 0xFFFF);
ushort portal_Y = (ushort)(generalData.dwParam >> 16);
string portal_ID = portal_X.ToString() + ":" + portal_Y.ToString() + ":" + client.Map.ID.ToString();
if (client.Account.State == Database.AccountTable.AccountState.ProjectManager)
client.Send(new Message("Portal ID: " + portal_ID, System.Drawing.Color.Red, Network.GamePackets.Message.TopLeft));
foreach (Game.Portal portal in client.Map.Portals)
{
int newmap = portal.DestinationMapID + 1000;
if (Kernel.GetDistance(portal.CurrentX, portal.CurrentY, client.Entity.X, client.Entity.Y) <= 4)
{
if (client.Player.Servernum == 1)
{
client.Entity.Teleport(portal.DestinationMapID, portal.DestinationX, portal.DestinationY, false);
return;
}
else
{
if(portal.DestinationMapID==1002)//
client.Entity.Teleport(1004, portal.DestinationX, portal.DestinationY, false);// هتاخد سطر ده و الي فوقه كوبي و باست عشان تضيف مابات تانيه
// 1002 مابه قديمه الي هتخرج فيها
//1004 مابه جديده الي هتخرج فيها طالما انته ف سيرفير تاني
if (portal.DestinationMapID == 1002)
client.Entity.Teleport(portal.DestinationMapID, portal.DestinationX, portal.DestinationY, false);
return;
}
}
}
if (client.Player.Servernum == 1)
{
client.Entity.Teleport(1002, 300, 278);
}
else
{
client.Entity.Teleport(1002, 300, 278); //مابه سيرفير تاني
}
}
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
ازاي تعدل علي الاميل لما ينزل | ElSaher | تطوير سيرفرات كونكر | 4 | 2022-05-04 03:14 AM |
يرجاله الاميل بينزل جى ام | sa3ed | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2020-04-15 10:44 AM |
الاميل بينزل ملط و اقرع "( | asd201230099 | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-02-21 04:55 AM |
حل مشكلة ان الاميل بيرقص لما يبندرب بي اسكلت SuperTwofoldBlade | ElSaher | تطوير سيرفرات كونكر | 0 | 2020-02-04 01:08 AM |
مشكلة لمة الاميل يموت | Omar | مشكلات السيرفيرات كونكر الشخصيه | 8 | 2020-01-23 08:31 PM |