|
المشاركات 32 |
+التقييم 0.02 |
تاريخ التسجيل May 2020 |
الاقامة |
نظام التشغيل |
رقم العضوية 3876 |
#region CreazyWar By karem
#region Start
case 50560://id
{
switch (npcRequest.OptionID)
{//TeamXor.com
case 0:
{
dialog.Text("hey mr : " + client.Entity.Name + " Would you like Join to CrazyWar ??");
dialog.Option("yes sure.", 1);
dialog.Option("No not now.", 255);
dialog.Avatar(35);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Minute >= 50 && DateTime.Now.Minute < 55)
{
client.Entity.Teleport(5661, 50, 50);
}
else
{
dialog.Text("Sory mr : " + client.Entity.Name + " Come Sign Up In xx.50 ??");
dialog.Option("OKi Thx.", 255);
dialog.Avatar(35);
dialog.Send();
}
break;
}
}
break;
}
#endregion Start
#endregion
#endregion
#region Crazy War
public ushort _CrazyWar = 0;
public ushort CrazyWar
{
get { return _CrazyWar; }
set
{
_CrazyWar = value;
if (value >= 1)
{
// AddFlag2(Network.GamePackets.Update.Flags2.TopPirate2);
}
}
}
#endregion
public static uint CrazyWarPoint = 0, CrazyWarWin = 0;
#region Crazy War
if (client.Entity.MapID == 5661)
{
client.ChaosStamp = Time32.Now;
client.Entity.ChaosTime = 1;
var upd = new GameCharacterUpdates(true);
upd.UID = client.Entity.UID;
upd.Add(GameCharacterUpdates.Dizzy, 0, 1);
client.SendScreen(upd, true);
client.Entity.AddFlag(Update.Flags.Confused);
}
if (client.Entity.MapID == 5661)
{
if (client.Entity.CrazyWar != 0)
{
if (client.Entity.CrazyWar > CrazyWarPoint)
{
CrazyWarPoint = client.Entity.CrazyWar;
CrazyWarWin = client.Entity.UID;
Kernel.SendWorldMessage(new Network.GamePackets.Message(" First Man crazy War >> Mr. " + client.Entity.Name + " Crazy War Points = " + client.Entity.CrazyWar + "!", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
}
}
if (client.Entity.MapID == 5661)
{
if (DateTime.Now.Minute == 56)
{
if (client.Entity.CrazyWar == CrazyWarPoint && client.Entity.UID == CrazyWarWin)
{
uint crazywarPrize = 1000;
client.Entity.ConquerPoints += crazywarPrize;
Kernel.SendWorldMessage(new Network.GamePackets.Message("Mr. " + client.Entity.Name + " Has Win For Crazy War . Priz = " + crazywarPrize + " !", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
client.Entity.Teleport(1002, 300, 278);
CrazyWarPoint = 0;
CrazyWarWin = 0;
}
if (!(DateTime.Now.Minute >= 50 && DateTime.Now.Minute <= 56))
{
client.Entity.Teleport(1002, 300, 278);
}
}
if (DateTime.Now.Minute == 50 && DateTime.Now.Second == 01 )
{
Kernel.SendWorldMessage(new Message("Crazy War Has Started .", System.Drawing.Color.White, Message.Center), Program.GamePool);
client.MessageBox("Crazy War Has Started Need Join ? .",
(p) => { p.Entity.Teleport(6672, 62, 41); }, null, 60);
}
public void Die(Entity killer)
{
#region CrazyWar
if (killer.MapID == 5661)
{
killer.CrazyWar += 1;
if (CrazyWar != 0)
{
CrazyWar -= 1;
}
// Kernel.SendWorldMessage(new Network.GamePackets.Message("Mr." + killer.Name + " Crazy War Point == " + killer.CrazyWar +"!", System.Drawing.Color.White, Network.GamePackets.Message.TopLeft), Program.GamePool);
killer.Owner.Send(new Message("Mr." + killer.Name + " Crazy War Point == " + killer.CrazyWar + "!", System.Drawing.Color.Red, Network.GamePackets.Message.FirstRightCorner));
Owner.Send(new Message("Mr." + Name + " Crazy War Point == " + CrazyWar + "!", System.Drawing.Color.Red, Network.GamePackets.Message.FirstRightCorner));
}
#endregion
50560 0 0 CrazyWar 2 45420 -1 6672 57 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
5661 700 7 0
50560 0 0 CrazyWar 2 45420 -1 6672 57 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
#region Crazy War
if (client.Player.MapID == 5661)
{
client.ChaosStamp = Time32.Now;
client.Player.ChaosTime = 1;
var upd = new GameCharacterUpdates(true);
upd.UID = client.Player.UID;
upd.Add(GameCharacterUpdates.Dizzy, 0, 1);
client.SendScreen(upd, true);
client.Player.AddFlag(Update.Flags.Confused);
}
if (client.Player.MapID == 5661)
{
if (client.Player.CrazyWar != 0)
{
if (client.Player.CrazyWar > CrazyWarPoint)
{
CrazyWarPoint = client.Player.CrazyWar;
CrazyWarWin = client.Player.UID;
Kernel.SendWorldMessage(new Network.GamePackets.Message(" First Man crazy War >> Mr. " + client.Player.Name + " Crazy War Points = " + client.Player.CrazyWar + "!", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
}
}
if (client.Player.MapID == 5661)
{
if (DateTime.Now.Minute == 56)
{
if (client.Player.CrazyWar == CrazyWarPoint && client.Player.UID == CrazyWarWin)
{
uint crazywarPrize = 1000;
client.Player.ConquerPoints += crazywarPrize;
Kernel.SendWorldMessage(new Network.GamePackets.Message("Mr. " + client.Player.Name + " Has Win For Crazy War . Priz = " + crazywarPrize + " !", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
}
client.Player.Teleport(1002, 300, 278);
CrazyWarPoint = 0;
CrazyWarWin = 0;
}
if (!(DateTime.Now.Minute >= 50 && DateTime.Now.Minute <= 56))
{
client.Player.Teleport(1002, 300, 278);
}
}
if (DateTime.Now.Minute == 50 && DateTime.Now.Second == 01)
{
Kernel.SendWorldMessage(new Message("Crazy War Has Started .", System.Drawing.Color.White, Message.Center), Program.GamePool);
client.MessageBox("Crazy War Has Started Need Join ? .",
(p) => { p.Player.Teleport(6672, 62, 41); }, null, 60);
}
#endregion
private void CharactersCallback
الذين يشاهدون محتوى الموضوع الآن : 1 ( الأعضاء 0 والزوار 1) | |
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
Vip Quest | محمد ياسر | تطوير سيرفرات كونكر | 2 | 2023-07-25 04:42 AM |
Quest TreasureBox | youssefabdelmanam | تطوير سيرفرات كونكر | 17 | 2019-07-12 11:16 PM |