|
public void Send(Client.GameState client)
public void Send(Client.GameState client)
{
if (client == null) return;
if (ID == 300000)
{
uint G = SocketProgress & 0xFF;
uint B = (SocketProgress >> 8) & 0xFF;
uint R = (SocketProgress >> 16) & 0xFF;
if (NextRed == 0 && NextBlue == 0 && NextGreen == 0)
{
NextRed = (byte)R;
NextBlue = (byte)B;
NextGreen = (byte)G;
Database.ConquerItemTable.UpdateNextSteedColor(this);
}
}
if (Days > 0)
{
if (DateTime.Now >= DayStamp.AddDays(Days))
{
Database.ConquerItemTable.DeleteItem(UID);
Database.ConquerItemTable.RemoveItem(UID);
client.Send(Database.ConquerItemInformation.BaseInformations[ID].Name + " is Has Expired");
}
TimeSpan Remain = DayStamp.AddDays(Days) - DateTime.Now;
TimeLeftInMinutes = (uint)Remain.TotalSeconds;
}
client.Send(Buffer);
if (RefineItem != 0)
{
Refinery.RefineryItem rI = RefineStats;
if (rI != null)
{
client.Send(new ItemSoul()
{
ID = rI.Identifier,
Identifier = UID,
Level = rI.Level,
Mode = ItemSoul.Types.Refine,
Percent = rI.Percent,
Type = 1,
Time = (UInt32)(RefineryTime.Subtract(DateTime.Now).TotalSeconds)
});
}
}
ItemAdding add = new ItemAdding(true);
if (Purification.Available)
add.Append(Purification);
if (ExtraEffect.Available)
add.Append(ExtraEffect);
if (Purification.Available || ExtraEffect.Available)
client.Send(add);
if (Lock == 2 && (Mode == Enums.ItemMode.Default || Mode == Enums.ItemMode.Update))
{
ItemLock itemLock = new ItemLock(true);
itemLock.UID = UID;
itemLock.ID = ItemLock.UnlockDate;
itemLock.dwParam = (uint)(UnlockEnd.Year * 10000 + UnlockEnd.Month * 100 + UnlockEnd.Day);
client.Send(itemLock);
}
Mode = Enums.ItemMode.Default;
}
if (Days > 0)
{
if (DateTime.Now >= DayStamp.AddDays(Days))
{
Database.ConquerItemTable.DeleteItem(UID);
Database.ConquerItemTable.RemoveItem(UID);
client.Send(Database.ConquerItemInformation.BaseInformations[ID].Name + " is Has Expired");
}
TimeSpan Remain = DayStamp.AddDays(Days) - DateTime.Now;
TimeLeftInMinutes = (uint)Remain.TotalSeconds;
}
if (item.ID >= 4030901 && item.ID >= 4030909)
{
if (monster != null)
{
if (monster.EntityFlag == EntityFlag.Monster)
{
if (monster.MonsterInfo.Boss || monster.Boss == 1)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
Damage += (int)(Damage * ((Level / 10) + 2));
}
}
}
}
}
if (item.ID >= 4030901 && item.ID >= 4030909)
{
if (monster != null)
{
if (monster.EntityFlag == EntityFlag.Monster)
{
if (monster.MonsterInfo.Boss || monster.Boss == 1)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
Damage += (int)(Damage * ((Level / 10) + 2));
}
}
}
}
}
if (item.ID >= 4031501 && item.ID >= 4031509)
{
if (monster != null)
{
if (monster.EntityFlag == EntityFlag.Monster)
{
if (monster.MonsterInfo.Boss || monster.Boss == 1)
{
Level = item.ID;
Level -= RuneItems.GatIDItemRune9and27(Level);
Damage += (int)(Damage * ((Level / 10) + 2));
}
}
}
}
if (user.Screen.TryGetValue(Attack.OpponentUID, out target, MapObjectType.SobNpc))
{
var attacked = target as Network.GamePackets.SobNpcSpawn;
if (user.Screen.TryGetValue(Attack.OpponentUID, out target, MapObjectType.SobNpc))
{
var attacked = target as Network.GamePackets.SobNpcSpawn;
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
سورس اليكس بي البروتو :] الابيك و الرونز و كل حاجه | محمودمحمدسالم | سورسات كونكر | 253 | 2024-10-21 03:57 AM |
بخصوص سورس ماتركس اللي نزلتة | Mostafa Shalby | تطوير سيرفرات كونكر | 11 | 2024-04-11 04:35 AM |
مشكله بخصوص سورس ماتركس | AdmAhmed | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-05-09 09:30 AM |
الرونز سورس رايزو | محمودمحمدسالم | مشكلات السيرفيرات كونكر الشخصيه | 2 | 2020-03-17 03:19 PM |
سستم الرونز سورس اليكس بورتو | محمودمحمدسالم | تطوير سيرفرات كونكر | 11 | 2019-09-24 02:56 AM |