|
|
المشاركات 504 |
+التقييم 0.26 |
تاريخ التسجيل Jun 2019 |
الاقامة المنوفية |
نظام التشغيل windows Server 2012R2 |
رقم العضوية 325 |
attack.SpellID == 12660
attack.SpellID == 12670
damage = (uint)(damage);
damage = (uint)(damage * 0.2);
static void SetLocation(Data generalData, Client.GameState client)
static void SetLocation(Data generalData, Client.GameState client)
{
if (client.Entity.MyJiang != null)
{
JiangHu.AttributesToArray(client);
if (client.Entity.MyJiang.SecondsEnd != 0)
{
client.Entity.MyJiang.SendOnline(client, true);
client.Entity.MyJiang.OnShutDown = true;
client.Entity.MyJiang.StartJiang = Time32.Now;
client.LoadItemStats();
}
else
{
client.Entity.MyJiang.SendToArray(client, false);
}
}
else if (client.Entity.Reborn == 2)
{
TalentStatus tal = new TalentStatus(client.Entity.UID);
tal.Mode = "0";
tal.Type = 0;
client.Send(tal);
}
SendFlower sendFlower = new SendFlower();
sendFlower.Typing = (Flowers.IsBoy((uint)client.Entity.Body) ? 3u : 2u);
client.Send(sendFlower.ToArray());
client.Send(client.Entity.MyAchievement.ToArray());
if (client.Guild != null)
{
client.Guild.SendGuild(client);
GuildMinDonations guildMinDonations = new GuildMinDonations(31);
guildMinDonations.AprendGuild(client.Guild);
client.Send(guildMinDonations.ToArray());
}
Clan clan = client.Entity.GetClan;
if (clan != null)
{
clan.Build(client, Clan.Types.Info);
client.Send(clan);
client.Entity.ClanName = clan.Name;
client.Send(new ClanRelations(clan, ClanRelations.RelationTypes.Allies));
client.Send(new ClanRelations(clan, ClanRelations.RelationTypes.Enemies));
}
foreach (Game.ConquerStructures.Society.Guild guild in Kernel.Guilds.Values)
{
guild.SendName(client);
guild.SendName(client);
}
if (client.Entity.EnlightmentTime > 0)
{
Enlight enlight = new Enlight(true);
enlight.Enlighted = client.Entity.UID;
enlight.Enlighter = 0;
if (client.Entity.EnlightmentTime > 80)
client.Entity.EnlightmentTime = 100;
else if (client.Entity.EnlightmentTime > 60)
client.Entity.EnlightmentTime = 80;
else if (client.Entity.EnlightmentTime > 40)
client.Entity.EnlightmentTime = 60;
else if (client.Entity.EnlightmentTime > 20)
client.Entity.EnlightmentTime = 40;
else if (client.Entity.EnlightmentTime > 0)
client.Entity.EnlightmentTime = 20;
for (int count = 0; count < client.Entity.EnlightmentTime; count += 20)
{
client.Send(enlight);
}
}
if (client.Entity.Hitpoints != 0)
{
if (client.Map.ID == 1036 || client.Map.ID == 1039)
{
if (client.Entity.PreviousMapID == 0)
client.Entity.SetLocation(1002, 300, 278);
else
{
switch (client.Entity.PreviousMapID)
{
default:
{
client.Entity.SetLocation(1002, 300, 278);
break;
}
case 1000:
{
client.Entity.SetLocation(1000, 500, 650);
break;
}
case 1020:
{
client.Entity.SetLocation(1020, 565, 562);
break;
}
case 1011:
{
client.Entity.SetLocation(1011, 188, 264);
break;
}
case 1015:
{
client.Entity.SetLocation(1015, 717, 571);
break;
}
}
}
}
}
else
{
if (client.Entity.MapID == 1038 && KhaledMohamed.Game.GuildWar.IsWar)
{
client.Entity.SetLocation(6001, 31, 74);
}
else
{
ushort[] Point = Database.DataHolder.FindReviveSpot(client.Map.ID);
client.Entity.SetLocation(Point[0], Point[1], Point[2]);
}
}
generalData.dwParam = client.Map.BaseID;
generalData.wParam1 = client.Entity.X;
generalData.wParam2 = client.Entity.Y;
client.Send(generalData);
client.Screen.Reload(null);//Done
client.Screen.FullWipe();
client.SendScreenSpawn(client.Entity, true);
client.Screen.Reload(null);
}
static void setlocation(data generaldata, client.gamestate client)
static void setlocation(data generaldata, client.gamestate client)
{
if (client.entity.myjiang != null)
{
jianghu.attributestoarray(client);
if (client.entity.myjiang.secondsend != 0)
{
client.entity.myjiang.sendonline(client, true);
client.entity.myjiang.onshutdown = true;
client.entity.myjiang.startjiang = time32.now;
client.loaditemstats();
}
else
{
client.entity.myjiang.sendtoarray(client, false);
}
}
else if (client.entity.reborn == 2)
{
talentstatus tal = new talentstatus(client.entity.uid);
tal.mode = "0";
tal.type = 0;
client.send(tal);
}
sendflower sendflower = new sendflower();
sendflower.typing = (flowers.isboy((uint)client.entity.body) ? 3u : 2u);
client.send(sendflower.toarray());
client.send(client.entity.myachievement.toarray());
if (client.guild != null)
{
client.guild.sendguild(client);
guildmindonations guildmindonations = new guildmindonations(31);
guildmindonations.aprendguild(client.guild);
client.send(guildmindonations.toarray());
}
clan clan = client.entity.getclan;
if (clan != null)
{
clan.build(client, clan.types.info);
client.send(clan);
client.entity.clanname = clan.name;
client.send(new clanrelations(clan, clanrelations.relationtypes.allies));
client.send(new clanrelations(clan, clanrelations.relationtypes.enemies));
}
foreach (game.conquerstructures.society.guild guild in kernel.guilds.values)
{
guild.sendname(client);
guild.sendname(client);
}
if (client.entity.enlightmenttime > 0)
{
enlight enlight = new enlight(true);
enlight.enlighted = client.entity.uid;
enlight.enlighter = 0;
if (client.entity.enlightmenttime > 80)
client.entity.enlightmenttime = 100;
else if (client.entity.enlightmenttime > 60)
client.entity.enlightmenttime = 80;
else if (client.entity.enlightmenttime > 40)
client.entity.enlightmenttime = 60;
else if (client.entity.enlightmenttime > 20)
client.entity.enlightmenttime = 40;
else if (client.entity.enlightmenttime > 0)
client.entity.enlightmenttime = 20;
for (int count = 0; count < client.entity.enlightmenttime; count += 20)
{
client.send(enlight);
}
}
if (client.entity.hitpoints != 0)
{
if (client.map.id == 1036 || client.map.id == 1039)
{
if (client.entity.previousmapid == 0)
client.entity.setlocation(1002, 300, 278);
else
{
switch (client.entity.previousmapid)
{
default:
{
client.entity.setlocation(1002, 300, 278);
break;
}
case 1000:
{
client.entity.setlocation(1000, 500, 650);
break;
}
case 1020:
{
client.entity.setlocation(1020, 565, 562);
break;
}
case 1011:
{
client.entity.setlocation(1011, 188, 264);
break;
}
case 1015:
{
client.entity.setlocation(1015, 717, 571);
break;
}
}
}
}
}
else
{
if (client.entity.mapid == 1038 && khaledmohamed.game.guildwar.iswar)
{
client.entity.setlocation(6001, 31, 74);
}
else
{
ushort[] point = database.dataholder.findrevivespot(client.map.id);
client.entity.setlocation(point[0], point[1], point[2]);
}
}
generaldata.dwparam = client.map.baseid;
generaldata.wparam1 = client.entity.x;
generaldata.wparam2 = client.entity.y;
client.send(generaldata);
client.screen.reload(null);//done
client.screen.fullwipe();
client.sendscreenspawn(client.entity, true);
client.screen.reload(null);
}
public void SendScreen(
public void SendScreen(Interfaces.IPacket buffer, bool self) { foreach (Interfaces.IMapObject _obj in Objects) { if (_obj != null) { if (_obj.UID != Owner.Entity.UID) { if (_obj.MapObjType == Game.MapObjectType.Entity) { GameState client = _obj.Owner as GameState; if (Owner.WatchingGroup != null && client.WatchingGroup == null) continue; if (Owner.TeamWatchingGroup != null && client.TeamWatchingGroup == null) continue; client.Send(buffer); } } } } if (self) Owner.Send(buffer); }
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
مشكلة في الاتاك حل ضروري لان السرفر مفتوح وعملالي مشاكل | Abod ayman | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-04-04 11:36 PM |
محتاج شرح التنقل من السرفر للتاني | AdhamMohamed | مشكلات السيرفيرات كونكر الشخصيه | 4 | 2020-02-10 01:11 PM |
مشكلة في السرفر | salahsayed | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-09-07 10:58 PM |
مشكلة بخصوص البلص فى السرفر | osama | مشكلات السيرفيرات كونكر الشخصيه | 9 | 2019-06-20 06:32 AM |
ازاى اعدل على دروب السرفر وازاى افك تشفير الدروب | yosefgamal987 | مشكلات السيرفيرات كونكر الشخصيه | 3 | 2019-05-21 01:33 AM |