محمد ياسر
2019-04-18, 11:04 AM
شـرح الـكويست
الكـويست بـتبدا كل يوم الساعه 19 في اللعبه و تخلص و 15
الـناس بـتدخل بتموت في بعضها و اللي بيكسب بياخد شمعه + سبس
لحد ما تجمع 10 شمعات و تكلم الان بي سي تاخد كـاس
Npcs.cs
#region Candle Event
case 112019:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialogs.Text("Hey there " + client.Entity.Name + " Would you like to join the Candle PKWar if you win Gold Clup and Cps ?.");
dialogs.Option("Yes Please", 1);
dialogs.Option("need My gold Clup", 2);
dialogs.Option("Not now.", 255);
dialogs.Send();
break;
}
case 1:
{
if (DateTime.Now.Hour >= 19 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 15)
{
client.Entity.Teleport(1620, 50, 50);
}
else
{
dialogs.Text("Candle Pk War is held during 07:10 To 07:15 in every Day");
dialogs.Option("I don't care.", 255);
dialogs.Send();
break;
}
break;
}
case 2:
{
if (client.Inventory.Contains(723470, 10))
{
client.Inventory.Remove(723470, 10);
client.Inventory.Add(2100095, 0, 1);
Kernel.SendWorldMessage(new Message(string.Concat(new object[] { "Congratulations! ", client.Entity.Name, " Has replaced the 10 candles to goldclup This gift of Candle War!." }), System.Drawing.Color.White, 0x7db), Kernel.GamePool.Values);
}
else
{
dialogs.Text("Sory you dont have 10 candles [ Candle.TK ].");
dialogs.Option("Thix Candle!", 0xff);
dialogs.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner Candle Event
case 112020:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialogs.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize ( Egy Qahr )?.");
dialogs.Option("Yes Please thinx Candle", 1);
dialogs.Option("I don't care.", 255);
dialogs.Send();
break;
}
case 1:
{
int alive = 0;
foreach (Conquer_Online_Server.Client.GameState players in Conquer_Online_Server.ServerBase.Kernel.GamePool.V alues)
if (players.Entity.MapID == 1620 && (!players.Entity.Dead))
alive++;
if (DateTime.Now.Hour >= 19 && DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 25)
{
if (alive == 1)
{
client.Inventory.Add(723470, 0, 1);
client.Entity.ConquerPoints += 100000;
Conquer_Online_Server.ServerBase.Kernel.SendWorldM essage(new Message("Congratulations! " + client.Entity.Name + " claimed (( 100,000 )) for winning the Candle and 1/10 gold clup Pk for this Hour.", System.Drawing.Color.Black, Message.Talk), Conquer_Online_Server.ServerBase.Kernel.GamePool.V alues);
client.Entity.Teleport(1002, 429, 378);
EntityTable.SaveEntity(client);
}
else
{
dialogs.Text("There are still " + alive + " players in the map kill it first to claim prize!");
dialogs.Option("okay", 255);
dialogs.Send();
break;
}
}
else
{
dialogs.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 07:20 To 07:25 ");
dialogs.Option("ok I Sorry [Lego]", 255);
dialogs.Send();
break;
}
break;
}
}
break;
}
#endregion
في World او Thread
#region Kandek Quest
if (Now64.Hour == 19)
{
Kernel.SendWorldMessage(new Message("Kandel Quest start now !", Color.White, Message.BroadcastMessage), Program.Values);
foreach (var client in Program.Values)
client.MessageBox(" Kandel Quest now work?",
p => { p.Entity.Teleport(1002, 450, 383); }, null, 20);
}
#endregion
ارفع دول علي القاعده
INSERT INTO `maps` VALUES ('1620', '1730', '0007', '0000');
INSERT INTO `npcs` VALUES ('112019', '0', '0', 'Canlde', '0002', '4610', '-1', '1002', '0450', '0383', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);
INSERT INTO `npcs` VALUES ('112020', '0', '0', 'Candle Win', '0002', '4610', '-1', '1620', '0053', '0058', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);
الكـويست بـتبدا كل يوم الساعه 19 في اللعبه و تخلص و 15
الـناس بـتدخل بتموت في بعضها و اللي بيكسب بياخد شمعه + سبس
لحد ما تجمع 10 شمعات و تكلم الان بي سي تاخد كـاس
Npcs.cs
#region Candle Event
case 112019:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialogs.Text("Hey there " + client.Entity.Name + " Would you like to join the Candle PKWar if you win Gold Clup and Cps ?.");
dialogs.Option("Yes Please", 1);
dialogs.Option("need My gold Clup", 2);
dialogs.Option("Not now.", 255);
dialogs.Send();
break;
}
case 1:
{
if (DateTime.Now.Hour >= 19 && DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 15)
{
client.Entity.Teleport(1620, 50, 50);
}
else
{
dialogs.Text("Candle Pk War is held during 07:10 To 07:15 in every Day");
dialogs.Option("I don't care.", 255);
dialogs.Send();
break;
}
break;
}
case 2:
{
if (client.Inventory.Contains(723470, 10))
{
client.Inventory.Remove(723470, 10);
client.Inventory.Add(2100095, 0, 1);
Kernel.SendWorldMessage(new Message(string.Concat(new object[] { "Congratulations! ", client.Entity.Name, " Has replaced the 10 candles to goldclup This gift of Candle War!." }), System.Drawing.Color.White, 0x7db), Kernel.GamePool.Values);
}
else
{
dialogs.Text("Sory you dont have 10 candles [ Candle.TK ].");
dialogs.Option("Thix Candle!", 0xff);
dialogs.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Winner Candle Event
case 112020:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialogs.Text("Hey there " + client.Entity.Name + "Would you like to claim your Prize ( Egy Qahr )?.");
dialogs.Option("Yes Please thinx Candle", 1);
dialogs.Option("I don't care.", 255);
dialogs.Send();
break;
}
case 1:
{
int alive = 0;
foreach (Conquer_Online_Server.Client.GameState players in Conquer_Online_Server.ServerBase.Kernel.GamePool.V alues)
if (players.Entity.MapID == 1620 && (!players.Entity.Dead))
alive++;
if (DateTime.Now.Hour >= 19 && DateTime.Now.Minute >= 20 && DateTime.Now.Minute <= 25)
{
if (alive == 1)
{
client.Inventory.Add(723470, 0, 1);
client.Entity.ConquerPoints += 100000;
Conquer_Online_Server.ServerBase.Kernel.SendWorldM essage(new Message("Congratulations! " + client.Entity.Name + " claimed (( 100,000 )) for winning the Candle and 1/10 gold clup Pk for this Hour.", System.Drawing.Color.Black, Message.Talk), Conquer_Online_Server.ServerBase.Kernel.GamePool.V alues);
client.Entity.Teleport(1002, 429, 378);
EntityTable.SaveEntity(client);
}
else
{
dialogs.Text("There are still " + alive + " players in the map kill it first to claim prize!");
dialogs.Option("okay", 255);
dialogs.Send();
break;
}
}
else
{
dialogs.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 07:20 To 07:25 ");
dialogs.Option("ok I Sorry [Lego]", 255);
dialogs.Send();
break;
}
break;
}
}
break;
}
#endregion
في World او Thread
#region Kandek Quest
if (Now64.Hour == 19)
{
Kernel.SendWorldMessage(new Message("Kandel Quest start now !", Color.White, Message.BroadcastMessage), Program.Values);
foreach (var client in Program.Values)
client.MessageBox(" Kandel Quest now work?",
p => { p.Entity.Teleport(1002, 450, 383); }, null, 20);
}
#endregion
ارفع دول علي القاعده
INSERT INTO `maps` VALUES ('1620', '1730', '0007', '0000');
INSERT INTO `npcs` VALUES ('112019', '0', '0', 'Canlde', '0002', '4610', '-1', '1002', '0450', '0383', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);
INSERT INTO `npcs` VALUES ('112020', '0', '0', 'Candle Win', '0002', '4610', '-1', '1620', '0053', '0058', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0000', '0', '0', '0', '0', '', '0000', '00', '00', '0000', '00', null);