Hassan Emprator
2019-04-24, 02:49 PM
معانا كوسته جميله اوي من تكويدي الشر ح بتاعها اهو///// بسم الله الرحمن الرحيم
شرح للكويستة هيا عباره عن 4 تنين صغيرين بيدفعوا عن امهم
والمفروض انك تقتل ال 4 دول علشان توصل لامهم كل واحد هتقتله هينقلك لمابة تاني بعد ما توصل وتقتلها هتديك جايزه سي بي اس
يله نخش علي الااضافه
افتح MonsterTable.cs
وضيف الكود دا
public void Drop(Game.Entity killer)
لو عندك خلاص
بعد ما ضيف الكود الي فوق دا هنضيف دا
فوق الكود الي فوق
#region DragonSon Quest By Hassan#
if (Name == "DragonSon1")
{
_String str = new _String(true);
str.UID = killer.UID;//longpi4_452
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cool");
killer.Owner.SendScreen(str, true);
killer.Teleport(8886, 130, 130);
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you now Killed The first Son of Dragon Keep going"));
foreach (Conquer_Online_Server.Client.GameState clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 8885)
{
clients.Entity.Teleport(8886, 130, 130);
clients.Send(new NpcReply(NpcReply.MessageBox, "You teleported to next stage"));
}
}
}
if (Name == "DragonSon2")
{
_String str = new _String(true);
str.UID = killer.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cool");
killer.Owner.SendScreen(str, true);
killer.Teleport(8887, 130, 130);
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you now Killed The second Son of Dragon Keep going"));
foreach (Conquer_Online_Server.Client.GameState clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 8886)
{
clients.Entity.Teleport(8887, 130, 130);
clients.Send(new NpcReply(NpcReply.MessageBox, "You teleported to next stage"));
}
}
}
if (Name == "DragonSon3")
{
_String str = new _String(true);
str.UID = killer.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cool");
killer.Owner.SendScreen(str, true);
killer.Teleport(8888, 130, 130);
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you now Killed The third Son of Dragon Keep going"));
foreach (Conquer_Online_Server.Client.GameState clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 8887)
{
clients.Entity.Teleport(8888, 130, 130);
clients.Send(new NpcReply(NpcReply.MessageBox, "You teleported to next stage"));
}
}
}
if (Name == "DragonSon4")
{
_String str = new _String(true);
str.UID = killer.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cool");
killer.Owner.SendScreen(str, true);
killer.Teleport(8889, 130, 130);
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you now Killed The forth Son of Dragon Keep going"));
foreach (Conquer_Online_Server.Client.GameState clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 8888)
{
clients.Entity.Teleport(8889, 130, 130);
clients.Send(new NpcReply(NpcReply.MessageBox, "You teleported to next stage"));
}
}
}
if (Name == "DragonMother" && this.Owner.MapID == 8889)
{
_String str = new _String(true);
str.UID = killer.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cool");
killer.Owner.SendScreen(str, true);
if (killer.VIPLevel > 0)
{
killer.ConquerPoints += rates.DragonSon1;
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you have Killed Dragons Mom and your prize " + rates.DragonSon1 + " cps coz you are VIP"));
Network.PacketHandler.WorldMessage(killer.Name + " has Killed TeratoDragon in DragonSon Quest and win " + rates.DragonSon1 + " cps coz he is VIP");
killer.Teleport(1002, 448, 338);
}
else
{
killer.ConquerPoints += rates.DragonSon2;
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you have Killed Dragons Mom and your prize " + rates.DragonSon2 + " cps"));
Network.PacketHandler.WorldMessage(killer.Name + " has Killed TeratoDragon in DragonSon Quest and win " + rates.DragonSon2 + " cps");
killer.Teleport(1002, 448, 338);
}
foreach (Conquer_Online_Server.Client.GameState clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 8599)
{
clients.Entity.Teleport(1002, 448, 338);
clients.Send(new NpcReply(NpcReply.MessageBox, "Come Back next Time"));
}
}
}
#endregion DragonSon Quest
بعد ما ضيفتهم هنروح PacketHandler.cs
ونبحث عن #region NPC Dialog (2031 + 2032)
وضيف جواه الاوتو انفت دا جواه
if ((((client.Map.BaseID != 0x1771) && (client.Map.BaseID != 0x1770)) && (!client.Entity.Dead && (req.OptionID == 175))) && (client.Map.BaseID != 700))
{
client.Entity.Teleport(8885, 130, 130);
}
بعد كدا هتفح Program.cs
هندور علي #region Team Qualifier
وهنضيف فوقه دا
#region DragonSon Pk By Hassan
if (DateTime.Now.Minute == 15 && DateTime.Now.Second == 00)
{
if (DateTime.Now.Minute == 15 && DateTime.Now.Second == 00)
{
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "DragonSon Pk Tourment has Started! You Wana Join?");
npc.OptionID = 175;
client.Send(npc.ToArray());
}
}
if (DateTime.Now.Minute == 20 && DateTime.Now.Second == 00)
{
if (DateTime.Now.Minute == 20 && DateTime.Now.Second == 00)
{
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "DragonSon Pk Tourment has Finisheded! Come Next Time");
npc.OptionID = 176;
client.Send(npc.ToArray());
}
}
#endregion
كدا خلصنا السورس نيجي للنافي كات
هنروح في Maps في القاعده ونضيف وهنعمل الخمس مابات دولي
8885 1018 7 0
8886 1018 7 0
8887 1018 7 0
8886 1018 7 0
8886 1018 7 0
بعد كدا هنفتحmonsterinfos
ونضيف دولي جواه بس مش تاخده كوبي اعمله انت بي اديك
INSERT INTO `monsterinfos` VALUES ('159871', 'DragonSon1', '0001', '0950', '1000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '0003', '1000000', '0001', '0000', '0000', '255', '099', '099', '099', '099', '099', '099', '0099', '0000', '1002020', '1002020', '10361', '0000', '10000', '00', '0', '0', '0', '0', '0', '0', null, null, null, null, null, null, null);
INSERT INTO `monsterinfos` VALUES ('159872', 'DragonSon2', '0001', '0950', '1000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '0003', '1000000', '0001', '0000', '0000', '255', '099', '099', '099', '099', '099', '099', '0099', '0000', '1002020', '1002020', '10361', '0000', '10000', '00', '0', '0', '0', '0', '0', '0', null, null, null, null, null, null, null);
INSERT INTO `monsterinfos` VALUES ('159873', 'DragonSon3', '0001', '0950', '1000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '0003', '1000000', '0001', '0000', '0000', '255', '099', '099', '099', '099', '099', '099', '0099', '0000', '1002020', '1002020', '10361', '0000', '10000', '00', '0', '0', '0', '0', '0', '0', null, null, null, null, null, null, null);
INSERT INTO `monsterinfos` VALUES ('159874', 'DragonSon4', '0001', '0950', '1000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '0003', '1000000', '0002', '0000', '0000', '255', '099', '099', '099', '099', '099', '099', '0099', '0000', '1002020', '1002020', '10361', '0000', '10000', '00', '0', '0', '0', '0', '0', '0', null, null, null, null, null, null, null);
INSERT INTO `monsterinfos` VALUES ('159875', 'DragonMother', '0001', '0959', '1000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '0003', '1000000', '0002', '0000', '0000', '255', '099', '099', '099', '099', '099', '099', '0099', '0000', '1002020', '1002020', '10361', '0000', '10000', '00', '0', '0', '0', '0', '0', '0', null, null, null, null, null, null, null);
بس كدا ياريت دعوه حوله
شرح للكويستة هيا عباره عن 4 تنين صغيرين بيدفعوا عن امهم
والمفروض انك تقتل ال 4 دول علشان توصل لامهم كل واحد هتقتله هينقلك لمابة تاني بعد ما توصل وتقتلها هتديك جايزه سي بي اس
يله نخش علي الااضافه
افتح MonsterTable.cs
وضيف الكود دا
public void Drop(Game.Entity killer)
لو عندك خلاص
بعد ما ضيف الكود الي فوق دا هنضيف دا
فوق الكود الي فوق
#region DragonSon Quest By Hassan#
if (Name == "DragonSon1")
{
_String str = new _String(true);
str.UID = killer.UID;//longpi4_452
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cool");
killer.Owner.SendScreen(str, true);
killer.Teleport(8886, 130, 130);
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you now Killed The first Son of Dragon Keep going"));
foreach (Conquer_Online_Server.Client.GameState clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 8885)
{
clients.Entity.Teleport(8886, 130, 130);
clients.Send(new NpcReply(NpcReply.MessageBox, "You teleported to next stage"));
}
}
}
if (Name == "DragonSon2")
{
_String str = new _String(true);
str.UID = killer.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cool");
killer.Owner.SendScreen(str, true);
killer.Teleport(8887, 130, 130);
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you now Killed The second Son of Dragon Keep going"));
foreach (Conquer_Online_Server.Client.GameState clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 8886)
{
clients.Entity.Teleport(8887, 130, 130);
clients.Send(new NpcReply(NpcReply.MessageBox, "You teleported to next stage"));
}
}
}
if (Name == "DragonSon3")
{
_String str = new _String(true);
str.UID = killer.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cool");
killer.Owner.SendScreen(str, true);
killer.Teleport(8888, 130, 130);
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you now Killed The third Son of Dragon Keep going"));
foreach (Conquer_Online_Server.Client.GameState clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 8887)
{
clients.Entity.Teleport(8888, 130, 130);
clients.Send(new NpcReply(NpcReply.MessageBox, "You teleported to next stage"));
}
}
}
if (Name == "DragonSon4")
{
_String str = new _String(true);
str.UID = killer.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cool");
killer.Owner.SendScreen(str, true);
killer.Teleport(8889, 130, 130);
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you now Killed The forth Son of Dragon Keep going"));
foreach (Conquer_Online_Server.Client.GameState clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 8888)
{
clients.Entity.Teleport(8889, 130, 130);
clients.Send(new NpcReply(NpcReply.MessageBox, "You teleported to next stage"));
}
}
}
if (Name == "DragonMother" && this.Owner.MapID == 8889)
{
_String str = new _String(true);
str.UID = killer.UID;
str.TextsCount = 1;
str.Type = _String.Effect;
str.Texts.Add("cool");
killer.Owner.SendScreen(str, true);
if (killer.VIPLevel > 0)
{
killer.ConquerPoints += rates.DragonSon1;
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you have Killed Dragons Mom and your prize " + rates.DragonSon1 + " cps coz you are VIP"));
Network.PacketHandler.WorldMessage(killer.Name + " has Killed TeratoDragon in DragonSon Quest and win " + rates.DragonSon1 + " cps coz he is VIP");
killer.Teleport(1002, 448, 338);
}
else
{
killer.ConquerPoints += rates.DragonSon2;
killer.Owner.Send(new NpcReply(NpcReply.MessageBox, "Gratz you have Killed Dragons Mom and your prize " + rates.DragonSon2 + " cps"));
Network.PacketHandler.WorldMessage(killer.Name + " has Killed TeratoDragon in DragonSon Quest and win " + rates.DragonSon2 + " cps");
killer.Teleport(1002, 448, 338);
}
foreach (Conquer_Online_Server.Client.GameState clients in Kernel.GamePool.Values)
{
if (clients.Entity.MapID == 8599)
{
clients.Entity.Teleport(1002, 448, 338);
clients.Send(new NpcReply(NpcReply.MessageBox, "Come Back next Time"));
}
}
}
#endregion DragonSon Quest
بعد ما ضيفتهم هنروح PacketHandler.cs
ونبحث عن #region NPC Dialog (2031 + 2032)
وضيف جواه الاوتو انفت دا جواه
if ((((client.Map.BaseID != 0x1771) && (client.Map.BaseID != 0x1770)) && (!client.Entity.Dead && (req.OptionID == 175))) && (client.Map.BaseID != 700))
{
client.Entity.Teleport(8885, 130, 130);
}
بعد كدا هتفح Program.cs
هندور علي #region Team Qualifier
وهنضيف فوقه دا
#region DragonSon Pk By Hassan
if (DateTime.Now.Minute == 15 && DateTime.Now.Second == 00)
{
if (DateTime.Now.Minute == 15 && DateTime.Now.Second == 00)
{
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "DragonSon Pk Tourment has Started! You Wana Join?");
npc.OptionID = 175;
client.Send(npc.ToArray());
}
}
if (DateTime.Now.Minute == 20 && DateTime.Now.Second == 00)
{
if (DateTime.Now.Minute == 20 && DateTime.Now.Second == 00)
{
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "DragonSon Pk Tourment has Finisheded! Come Next Time");
npc.OptionID = 176;
client.Send(npc.ToArray());
}
}
#endregion
كدا خلصنا السورس نيجي للنافي كات
هنروح في Maps في القاعده ونضيف وهنعمل الخمس مابات دولي
8885 1018 7 0
8886 1018 7 0
8887 1018 7 0
8886 1018 7 0
8886 1018 7 0
بعد كدا هنفتحmonsterinfos
ونضيف دولي جواه بس مش تاخده كوبي اعمله انت بي اديك
INSERT INTO `monsterinfos` VALUES ('159871', 'DragonSon1', '0001', '0950', '1000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '0003', '1000000', '0001', '0000', '0000', '255', '099', '099', '099', '099', '099', '099', '0099', '0000', '1002020', '1002020', '10361', '0000', '10000', '00', '0', '0', '0', '0', '0', '0', null, null, null, null, null, null, null);
INSERT INTO `monsterinfos` VALUES ('159872', 'DragonSon2', '0001', '0950', '1000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '0003', '1000000', '0001', '0000', '0000', '255', '099', '099', '099', '099', '099', '099', '0099', '0000', '1002020', '1002020', '10361', '0000', '10000', '00', '0', '0', '0', '0', '0', '0', null, null, null, null, null, null, null);
INSERT INTO `monsterinfos` VALUES ('159873', 'DragonSon3', '0001', '0950', '1000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '0003', '1000000', '0001', '0000', '0000', '255', '099', '099', '099', '099', '099', '099', '0099', '0000', '1002020', '1002020', '10361', '0000', '10000', '00', '0', '0', '0', '0', '0', '0', null, null, null, null, null, null, null);
INSERT INTO `monsterinfos` VALUES ('159874', 'DragonSon4', '0001', '0950', '1000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '0003', '1000000', '0002', '0000', '0000', '255', '099', '099', '099', '099', '099', '099', '0099', '0000', '1002020', '1002020', '10361', '0000', '10000', '00', '0', '0', '0', '0', '0', '0', null, null, null, null, null, null, null);
INSERT INTO `monsterinfos` VALUES ('159875', 'DragonMother', '0001', '0959', '1000000', '00', '50000', '45000', '19999', '0036', '0089', '0000', '0000', '0000', '0000', '0001', '0006', '0000', '1000', '0500', '0150', '3', '0003', '1000000', '0002', '0000', '0000', '255', '099', '099', '099', '099', '099', '099', '0099', '0000', '1002020', '1002020', '10361', '0000', '10000', '00', '0', '0', '0', '0', '0', '0', null, null, null, null, null, null, null);
بس كدا ياريت دعوه حوله