|
|
المشاركات 160 |
+التقييم 0.08 |
تاريخ التسجيل Sep 2019 |
الاقامة المطرية - القاهرة |
نظام التشغيل Windows 7 |
رقم العضوية 1120 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NameProject.Game.MsgNpc
{
public unsafe static partial class MsgBuilder
{
public enum StaticGUIType : byte
{
Header = 0,
Body = 1,
Footer = 2
}
public static unsafe ServerSockets.Packet StaticGUI(this ServerSockets.Packet stream, StaticGUIType Mode, string Text)
{
stream.InitWriter();
stream.Write(Extensions.Time32.Now.Value);
stream.Write(0);
stream.Write((ushort)0);
stream.Write((byte)Mode);
stream.Write((byte)112);
stream.Write(Text);
stream.Finalize(GamePackets.NpcServerRequest);
return stream;
}
}
}
#region GameUpdates Message
//AbuMaryam - منتدي اكواد
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Header, "Our latest updates:"));
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Body, "Welcome to " + Program.ServerConfig.ServerName + "."));
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Body, "- Epic Warrior got added"));
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Body, "- Guild System got some changes (such as now you can have up to 8 DL - Enemy / Ally bugs got fixed)"));
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Body, "- CPS Admin exchange of silvers into gold bug got fixed."));
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Body, "- AntiCheat protection got some updates in order to stop ilegal changes ."));
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Body, "- P7 Weapons for Epic Warrior got added at quest."));
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Body, "- BackFire (EpicWarrior Skill) is now giving the right about of damage in the opponents."));
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Body, "- Now Archers can equip 2 x 1-Hand Weapons."));
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Body, "And many others bugs got fixed that can be seen in the game."));
client.Send(packet.StaticGUI(MsgNpc.MsgBuilder.StaticGUIType.Footer, "Thank you. " + Program.ServerConfig.ServerName + "`s staff. "));
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NameProject.Network.GamePackets
{
public unsafe class GameUpdates : Writer, Interfaces.IPacket
{
byte[] Packet;
public enum Mode : byte
{
Header,
Body,
Footer
}
public GameUpdates(Mode _Action, string _String)
{
Packet = new byte[29 + _String.Length];
WriteUInt16((ushort)(Packet.Length - 8), 0, Packet);
WriteUInt16((ushort)MsgTypes.MsgTaskDialog, 2, Packet);
WriteUInt32((uint)Time32.timeGetTime().GetHashCode(), 4, Packet);
Packet[15] = 112;
Packet[16] = 1;
Action = _Action;
String = _String;
}
public Mode Action
{
get { return (Mode)Packet[14]; }
set { Packet[14] = (Byte)value; }
}
public string String
{
get { return System.BitConverter.ToString(Packet, 18, Packet[17]); }
set { WriteStringWithLength(value, 17, Packet); }
}
public byte[] ToArray()
{
return Packet;
}
public void Deserialize(byte[] packet)
{
Packet = packet;
}
public void Send(Client.GameState client)
{
client.Send(Packet);
}
}
}
#region GameUpdates - AbuMaryam
private uint _updatelist;
public uint UpdateList
{
get { return _updatelist; }
set
{
_updatelist = value;
UpdateDatabase("updatelist", value);
}
}
#endregion
#region Game Updates
if (client.Entity.UpdateList == 0)
{
client.Send(new GameUpdates(GameUpdates.Mode.Header, "Welcome To, ServerName Online" + DateTime.Now.ToString()));
client.Send(new GameUpdates(GameUpdates.Mode.Body, "1.New skills have been added\n"));
client.Send(new GameUpdates(GameUpdates.Mode.Body, "2.Support ServerName Online By Invite ur Friends\n"));
client.Send(new GameUpdates(GameUpdates.Mode.Body, "3.Don't trust anyone claiming that he is the GM/PM\n"));
client.Send(new GameUpdates(GameUpdates.Mode.Body, "4.If you found any bug you can repot it By ServerName"));
client.Send(new GameUpdates(GameUpdates.Mode.Body, "5.Enjoy Playing ServerName Online with us and invite friends!"));
client.Send(new GameUpdates(GameUpdates.Mode.Footer, "A lot of surprises awaited during these days"));
client.Entity.UpdateList += 1;
}
#endregion
using System;
namespace NameProject.Network.GamePackets
{
public unsafe class GameUpdates : Writer, Interfaces.IPacket
{
byte[] Packet;
public enum Mode : byte
{
Header,
Body,
Footer
}
public GameUpdates(Mode _Action, string _String)
{
Packet = new byte[29 + _String.Length];
WriteUInt16((ushort)(Packet.Length - 8), 0, Packet);
WriteUInt16((ushort)MsgTypes.MsgTaskDialog, 2, Packet);
WriteUInt32((uint)Time32.timeGetTime().GetHashCode(), 4, Packet);
Packet[15] = 112;
Packet[16] = 1;
Action = _Action;
String = _String;
}
public Mode Action
{
get { return (Mode)Packet[14]; }
set { Packet[14] = (Byte)value; }
}
public string String
{
get { return System.BitConverter.ToString(Packet, 18, Packet[17]); }
set { WriteStringWithLength(value, 17, Packet); }
}
public byte[] ToArray()
{
return Packet;
}
public void Deserialize(byte[] packet)
{
Packet = packet;
}
public void Send(Client.GameState client)
{
client.Send(Packet);
}
}
}
#region GameUpdates - AbuMaryam
private uint _updatelist;
public uint UpdateList
{
get { return _updatelist; }
set
{
_updatelist = value;
UpdateDatabase("updatelist", value);
}
}
#endregion
#region Game Updates
if (client.Entity.UpdateList == 0)
{
client.Send(new GameUpdates(GameUpdates.Mode.Header, "Welcome To, ServerName Online" + DateTime.Now.ToString()));
client.Send(new GameUpdates(GameUpdates.Mode.Body, "1.New skills have been added\n"));
client.Send(new GameUpdates(GameUpdates.Mode.Body, "2.Support ServerName Online By Invite ur Friends\n"));
client.Send(new GameUpdates(GameUpdates.Mode.Body, "3.Don't trust anyone claiming that he is the GM/PM\n"));
client.Send(new GameUpdates(GameUpdates.Mode.Body, "4.If you found any bug you can repot it By ServerName"));
client.Send(new GameUpdates(GameUpdates.Mode.Body, "5.Enjoy Playing ServerName Online with us and invite friends!"));
client.Send(new GameUpdates(GameUpdates.Mode.Footer, "A lot of surprises awaited during these days"));
client.Entity.UpdateList += 1;
}
#endregion
|
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
New Emulator Source Upgrade By ShaDow | Mostafa Shalby | سورسات كونكر | 92 | اليوم 12:44 PM |
نقدم لكم سورس Xlords وداعآ لجميع السورسات | ahmedfathy | سورسات كونكر | 114 | 2024-10-30 07:15 PM |
مـوضـوع مـهم جـدآ Emulator Source | MaZzGanGYy | تطوير سيرفرات كونكر | 7 | 2020-02-17 01:18 PM |
بخصوص سورس Emulator | Mostafa Shalby | قسم الاقتراحات والابداع | 1 | 2019-11-14 08:48 PM |
وداعآ لجميع السيرفرات WolfTeam تعود من جديد | ahmedfathy | اعلانات السيرفيرات الشخصية | 3 | 2019-09-26 04:55 AM |