محمد ياسر
2019-04-27, 10:03 AM
المرحله دي هيا اللي في الشرح اللي فوق
تعالو بقي نشوف الشرح وكفايه كلام كدا
هنروح علي ملف npcs وهنضيف الانبي سي هات دي
#region alaa eldin quest by mr ahmedbakkar
#region Aladdin Part 1
case 506070:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("hey mr:" + client.Entity.Name + " you need sign up the alaa eldien quest ? ");
// dialog.Text(" Are You Ready?");
dialog.Option("yes sure.", 1);
dialog.Option("what this?.", 2);
dialog.Option("I owned all parts of Aladdin's lamp.", 3);
dialog.Option("thx . not now.", 255);
dialog.Send();
break;
}
case 1 :
{
dialog.Text("I go to other cities and Collect Aladdin lamps and come again . Only in the second 320 ");
// dialog.Text(" Are You Ready?");
dialog.Option("OKi.", 255);
client.MessageBox("hello mr : " + client.Entity.Name + " Please click Yes to start the event",
(p) =>
{
client.Entity.allaeldin = Time32.Now;
client.Entity.AddFlag(Update.Flags2.alaaeldien2);
client.Entity.AddFlag(Update.Flags2.alaaeldien);
p.Entity.Teleport(1002, 300, 278);
client.Entity.Update(_String.Effect, "SiJiPingAn", true);
client.Entity.Update(_String.Effect, "accession3", true);
#region posat
uint UID = 200492;
ConquerItem newItem = new AhmedBakkar.Network.GamePackets.ConquerItem(true);
newItem.ID = 200492;
newItem.UID = UID;
newItem.Durability = 1000;
newItem.MaximDurability = 1000;
newItem.Position = 17;
client.Equipment.Remove(17);
client.Equipment.Add(newItem);
newItem.Mode = AhmedBakkar.Game.Enums.ItemMode.Update;
newItem.Send(client);
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
client.Equipment.UpdateEntityPacket();
#endregion posat
#region Germ alaa
uint UID2 = 192565;
ConquerItem newItem2 = new AhmedBakkar.Network.GamePackets.ConquerItem(true);
newItem2.ID = 192565;
newItem2.UID = UID2;
newItem2.Durability = 1000;
newItem2.MaximDurability = 1000;
newItem2.Position = 9;
client.Equipment.Remove(9);
client.Equipment.Add(newItem2);
newItem2.Mode = AhmedBakkar.Game.Enums.ItemMode.Update;
newItem2.Send(client);
ClientEquip equips2 = new ClientEquip();
equips2.DoEquips(client);
client.Send(equips2);
client.Equipment.UpdateEntityPacket();
#endregion Germ alaa
// client.Entity.Aladdin += 1;
},
null, 360);
break;
}
case 2:
{
client.Send(new Message("عفواً لايمكن عرض الروابط في الإرشيف", System.Drawing.Color.Red, Network.GamePackets.Message.Website));
break;
}
case 3:
{
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
{
if (client.Inventory.Contains(2152180, 1) && client.Inventory.Contains(2152181, 1) && client.Inventory.Contains(2152182, 1) && client.Inventory.Contains(2152183, 1))
{
client.Inventory.Remove(2152180, 1);
client.Inventory.Remove(2152181, 1);
client.Inventory.Remove(2152182, 1);
client.Inventory.Remove(2152183, 1);
// client.Entity.Aladdin = 1;
client.Entity.ConquerPoints += 1000000;
client.Entity.Update(_String.Effect, "end_task", true);
client.Entity.Update(_String.Effect, "good", true);
client.Entity.Update(_String.Effect, "break_start", true);
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " I have 4 Parts for aladdin is lump. ");
dialog.Option("Oki sure.", 255);
}
break;
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " Go TO the TC for start the Event. ");
dialog.Option("Oki sure.", 255);
break;
}
}
}
break;
}
#endregion Aladdin Part 1
#region Aladdin Part 2
case 506071:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcom mr:" + client.Entity.Name + " in the part 2 for event aladdin Do you want the first part of the lamp? ");
dialog.Option("yes sure.", 1);
// dialog.Option("what this?.", 2);
dialog.Option("thx . not now.", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
if (!client.Inventory.Contains(2152180, 1))
{
client.Inventory.Add(2152180, 0, 1);
client.Entity.Update(_String.Effect, "accession3", true);
client.Entity.Update(_String.Effect, "end_task", true);
Kernel.SendWorldMessage(new Message(" ." + client.Entity.Name + " is finish part one fore aladdin Event Gratz sure..", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " Go To Sign up the Twin City . ");
dialog.Option("Oki sure.", 255);
break;
}
break;
}
}
break;
}
#endregion Aladdin Part 2
#region Aladdin Part 3
case 506072:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcom mr:" + client.Entity.Name + " in the part 2 for event aladdin Do you want the part 2 of the lamp? ");
dialog.Option("yes sure.", 1);
// dialog.Option("what this?.", 2);
dialog.Option("thx . not now.", 255);
dialog.Send();
break;
}
case 1:
{
if (!client.Inventory.Contains(2152181, 1))
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
{
client.Inventory.Add(2152181, 0, 1);
client.Entity.Update(_String.Effect, "accession1", true);
client.Entity.Update(_String.Effect, "end_task", true);
Kernel.SendWorldMessage(new Message(" ." + client.Entity.Name + " is finish part 2 fore aladdin Event Gratz sure..", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " Go To Sign up the Twin City . ");
dialog.Option("Oki sure.", 255);
break;
}
break;
}
}
break;
}
#endregion Aladdin Part 2
#region Aladdin Part 4
case 506073:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcom mr:" + client.Entity.Name + " in the part 2 for event aladdin Do you want the part 3 of the lamp? ");
dialog.Option("yes sure.", 1);
// dialog.Option("what this?.", 2);
dialog.Option("thx . not now.", 255);
dialog.Send();
break;
}
case 1:
{
if (!client.Inventory.Contains(2152182, 1))
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
{
client.Inventory.Add(2152182, 0, 1);
client.Entity.Update(_String.Effect, "accession2", true);
client.Entity.Update(_String.Effect, "end_task", true);
Kernel.SendWorldMessage(new Message(" ." + client.Entity.Name + " is finish part 3 fore aladdin Event Gratz sure..", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " Go To Sign up the Twin City . ");
dialog.Option("Oki sure.", 255);
break;
}
break;
}
}
break;
}
#endregion Aladdin Part 2
#region Aladdin Part 5
case 506074:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcom mr:" + client.Entity.Name + " in the part 2 for event aladdin Do you want the part 4 of the lamp? ");
dialog.Option("yes sure.", 1);
// dialog.Option("what this?.", 2);
dialog.Option("thx . not now.", 255);
dialog.Send();
break;
}
case 1:
{
if (!client.Inventory.Contains(2152183, 1))
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
{
client.Inventory.Add(2152183, 0, 1);
client.Entity.Update(_String.Effect, "accession4", true);
client.Entity.Update(_String.Effect, "end_task", true);
Kernel.SendWorldMessage(new Message(" ." + client.Entity.Name + " is finish part fore 4 aladdin Event Gratz sure..", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " Go To Sign up the Twin City . ");
dialog.Option("Oki sure.", 255);
break;
}
break;
}
}
break;
}
#endregion Aladdin Part 5
#endregion alaa eldin quest by mr ahmedbakkar
وبعدين هتبحث عن
public class Flags2
وهتحط دول في وسط الفلاجات اللي ادامك
alaaeldien = 0x5000000000000,
alaaeldien2 = 0x5000000000,
هتلاقي الايرورات راحت بس متفرحش اوي كدا لسه شويه لحد ما نخلص
هتدخل علي ملف وورلد وتبحث عن
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags.Fly))
دي هتلاقيها في كود اسكله الطيرات بتاع الارشر هتقفل الكود كله من السالب وتحط دول تحته
#region alaa eldien
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
{
if (Now >= client.Entity.allaeldin.AddSeconds(360))
{
client.Entity.RemoveFlag(Network.GamePackets.Updat e.Flags2.alaaeldien);
client.Entity.RemoveFlag(Network.GamePackets.Updat e.Flags2.alaaeldien2);
client.Inventory.Remove(2152180, 1);
client.Inventory.Remove(2152181, 1);
client.Inventory.Remove(2152182, 1);
client.Inventory.Remove(2152183, 1);
client.Entity.alaaeldienTime = 0;
client.Entity.Update(_String.Effect, "accession6", true);
client.MessageBox("Finishd the Time ",
(p) => { }, null);
return;
}
}
#endregion
وبعد كدا هتروح ملف Entity وتبحث عن
public Time32 DeathStamp
في الكود دا هتضيف
allaeldin,
وابحث عن
public bool CounterKillSwitch = false;
وضيف فوقها
public byte alaaeldienTime;
وبعدين افتح الباكت هاندلر وابحث عن
case 1128:
وهتضيف تحت القوس
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
return;
وبعدين هنبحث عن
case 1060020:
وتحت القوس هتحط
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
return;
وهتنزل تحت شويه هتلاقي
case 1060021:
هتضيف تحت القوس برده
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
return;
ونفس اللي عملنا في الاتنين اللي فاتو دول هنلاقيهم متكررين تحت بعض لحد نهايه الكود خالص هتضيف تحت القوس برده نفس الكود اللي هوا دا
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
return;
وبعدين هتروح علي ملف هاندل وتبحث عن
case 7001:
ضيف
if (attacker.ContainsFlag(Network.GamePackets.Update. Flags2.alaaeldien) && attacker.ContainsFlag(Network.GamePackets.Update.F lags2.alaaeldien2))
return;
ندخل بقي علي شغل النافي كات
506070 0 0 allaeldinTC 2 45010 -1 1002 310 277 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
506071 0 0 aladdinPhon 2 45010 -1 1011 190 272 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
506072 0 0 aladdinApe 2 45010 -1 1020 567 584 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
506073 0 0 aladdinDis 2 45010 -1 1000 496 649 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
506074 0 0 aladdinBird 2 45010 -1 1015 723 573 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ودي الايتمات هتضيفها في الايتمز وفي الايتم تايب في الكلينت
2152180@@[AladdinP1]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152181@@[AladdinP2]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152182@@[AladdinP3]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152183@@[AladdinP4]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
في الكلينت
افتح ani/ItemMinIcon وفي اخر الملف ضيف دول
[Item2152180]
FrameAmount=1
Frame0=data/ItemMinIcon/2152180.dds
[Item2152181]
FrameAmount=1
Frame0=data/ItemMinIcon/2152181.dds
[Item2152182]
FrameAmount=1
Frame0=data/ItemMinIcon/2152182.dds
[Item2152183]
FrameAmount=1
Frame0=data/ItemMinIcon/2152183.dds
وبعدين افتح ملف itemtype بعد فك التشفير وضيف دول
2152180@@[AladdinP1]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152181@@[AladdinP2]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152182@@[AladdinP3]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152183@@[AladdinP4]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
تبقي صور ال DDS
الكوسته قديمه والباتش كان مرفوع علي الخليج وده اتقفل
فانا اسيبكم انتم تعملوا الصور الي تعجبك
تعالو بقي نشوف الشرح وكفايه كلام كدا
هنروح علي ملف npcs وهنضيف الانبي سي هات دي
#region alaa eldin quest by mr ahmedbakkar
#region Aladdin Part 1
case 506070:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("hey mr:" + client.Entity.Name + " you need sign up the alaa eldien quest ? ");
// dialog.Text(" Are You Ready?");
dialog.Option("yes sure.", 1);
dialog.Option("what this?.", 2);
dialog.Option("I owned all parts of Aladdin's lamp.", 3);
dialog.Option("thx . not now.", 255);
dialog.Send();
break;
}
case 1 :
{
dialog.Text("I go to other cities and Collect Aladdin lamps and come again . Only in the second 320 ");
// dialog.Text(" Are You Ready?");
dialog.Option("OKi.", 255);
client.MessageBox("hello mr : " + client.Entity.Name + " Please click Yes to start the event",
(p) =>
{
client.Entity.allaeldin = Time32.Now;
client.Entity.AddFlag(Update.Flags2.alaaeldien2);
client.Entity.AddFlag(Update.Flags2.alaaeldien);
p.Entity.Teleport(1002, 300, 278);
client.Entity.Update(_String.Effect, "SiJiPingAn", true);
client.Entity.Update(_String.Effect, "accession3", true);
#region posat
uint UID = 200492;
ConquerItem newItem = new AhmedBakkar.Network.GamePackets.ConquerItem(true);
newItem.ID = 200492;
newItem.UID = UID;
newItem.Durability = 1000;
newItem.MaximDurability = 1000;
newItem.Position = 17;
client.Equipment.Remove(17);
client.Equipment.Add(newItem);
newItem.Mode = AhmedBakkar.Game.Enums.ItemMode.Update;
newItem.Send(client);
ClientEquip equips = new ClientEquip();
equips.DoEquips(client);
client.Send(equips);
client.Equipment.UpdateEntityPacket();
#endregion posat
#region Germ alaa
uint UID2 = 192565;
ConquerItem newItem2 = new AhmedBakkar.Network.GamePackets.ConquerItem(true);
newItem2.ID = 192565;
newItem2.UID = UID2;
newItem2.Durability = 1000;
newItem2.MaximDurability = 1000;
newItem2.Position = 9;
client.Equipment.Remove(9);
client.Equipment.Add(newItem2);
newItem2.Mode = AhmedBakkar.Game.Enums.ItemMode.Update;
newItem2.Send(client);
ClientEquip equips2 = new ClientEquip();
equips2.DoEquips(client);
client.Send(equips2);
client.Equipment.UpdateEntityPacket();
#endregion Germ alaa
// client.Entity.Aladdin += 1;
},
null, 360);
break;
}
case 2:
{
client.Send(new Message("عفواً لايمكن عرض الروابط في الإرشيف", System.Drawing.Color.Red, Network.GamePackets.Message.Website));
break;
}
case 3:
{
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
{
if (client.Inventory.Contains(2152180, 1) && client.Inventory.Contains(2152181, 1) && client.Inventory.Contains(2152182, 1) && client.Inventory.Contains(2152183, 1))
{
client.Inventory.Remove(2152180, 1);
client.Inventory.Remove(2152181, 1);
client.Inventory.Remove(2152182, 1);
client.Inventory.Remove(2152183, 1);
// client.Entity.Aladdin = 1;
client.Entity.ConquerPoints += 1000000;
client.Entity.Update(_String.Effect, "end_task", true);
client.Entity.Update(_String.Effect, "good", true);
client.Entity.Update(_String.Effect, "break_start", true);
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " I have 4 Parts for aladdin is lump. ");
dialog.Option("Oki sure.", 255);
}
break;
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " Go TO the TC for start the Event. ");
dialog.Option("Oki sure.", 255);
break;
}
}
}
break;
}
#endregion Aladdin Part 1
#region Aladdin Part 2
case 506071:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcom mr:" + client.Entity.Name + " in the part 2 for event aladdin Do you want the first part of the lamp? ");
dialog.Option("yes sure.", 1);
// dialog.Option("what this?.", 2);
dialog.Option("thx . not now.", 255);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
if (!client.Inventory.Contains(2152180, 1))
{
client.Inventory.Add(2152180, 0, 1);
client.Entity.Update(_String.Effect, "accession3", true);
client.Entity.Update(_String.Effect, "end_task", true);
Kernel.SendWorldMessage(new Message(" ." + client.Entity.Name + " is finish part one fore aladdin Event Gratz sure..", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " Go To Sign up the Twin City . ");
dialog.Option("Oki sure.", 255);
break;
}
break;
}
}
break;
}
#endregion Aladdin Part 2
#region Aladdin Part 3
case 506072:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcom mr:" + client.Entity.Name + " in the part 2 for event aladdin Do you want the part 2 of the lamp? ");
dialog.Option("yes sure.", 1);
// dialog.Option("what this?.", 2);
dialog.Option("thx . not now.", 255);
dialog.Send();
break;
}
case 1:
{
if (!client.Inventory.Contains(2152181, 1))
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
{
client.Inventory.Add(2152181, 0, 1);
client.Entity.Update(_String.Effect, "accession1", true);
client.Entity.Update(_String.Effect, "end_task", true);
Kernel.SendWorldMessage(new Message(" ." + client.Entity.Name + " is finish part 2 fore aladdin Event Gratz sure..", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " Go To Sign up the Twin City . ");
dialog.Option("Oki sure.", 255);
break;
}
break;
}
}
break;
}
#endregion Aladdin Part 2
#region Aladdin Part 4
case 506073:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcom mr:" + client.Entity.Name + " in the part 2 for event aladdin Do you want the part 3 of the lamp? ");
dialog.Option("yes sure.", 1);
// dialog.Option("what this?.", 2);
dialog.Option("thx . not now.", 255);
dialog.Send();
break;
}
case 1:
{
if (!client.Inventory.Contains(2152182, 1))
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
{
client.Inventory.Add(2152182, 0, 1);
client.Entity.Update(_String.Effect, "accession2", true);
client.Entity.Update(_String.Effect, "end_task", true);
Kernel.SendWorldMessage(new Message(" ." + client.Entity.Name + " is finish part 3 fore aladdin Event Gratz sure..", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " Go To Sign up the Twin City . ");
dialog.Option("Oki sure.", 255);
break;
}
break;
}
}
break;
}
#endregion Aladdin Part 2
#region Aladdin Part 5
case 506074:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcom mr:" + client.Entity.Name + " in the part 2 for event aladdin Do you want the part 4 of the lamp? ");
dialog.Option("yes sure.", 1);
// dialog.Option("what this?.", 2);
dialog.Option("thx . not now.", 255);
dialog.Send();
break;
}
case 1:
{
if (!client.Inventory.Contains(2152183, 1))
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
{
client.Inventory.Add(2152183, 0, 1);
client.Entity.Update(_String.Effect, "accession4", true);
client.Entity.Update(_String.Effect, "end_task", true);
Kernel.SendWorldMessage(new Message(" ." + client.Entity.Name + " is finish part fore 4 aladdin Event Gratz sure..", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
{
dialog.Text("sorey mr:" + client.Entity.Name + " Go To Sign up the Twin City . ");
dialog.Option("Oki sure.", 255);
break;
}
break;
}
}
break;
}
#endregion Aladdin Part 5
#endregion alaa eldin quest by mr ahmedbakkar
وبعدين هتبحث عن
public class Flags2
وهتحط دول في وسط الفلاجات اللي ادامك
alaaeldien = 0x5000000000000,
alaaeldien2 = 0x5000000000,
هتلاقي الايرورات راحت بس متفرحش اوي كدا لسه شويه لحد ما نخلص
هتدخل علي ملف وورلد وتبحث عن
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags.Fly))
دي هتلاقيها في كود اسكله الطيرات بتاع الارشر هتقفل الكود كله من السالب وتحط دول تحته
#region alaa eldien
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
{
if (Now >= client.Entity.allaeldin.AddSeconds(360))
{
client.Entity.RemoveFlag(Network.GamePackets.Updat e.Flags2.alaaeldien);
client.Entity.RemoveFlag(Network.GamePackets.Updat e.Flags2.alaaeldien2);
client.Inventory.Remove(2152180, 1);
client.Inventory.Remove(2152181, 1);
client.Inventory.Remove(2152182, 1);
client.Inventory.Remove(2152183, 1);
client.Entity.alaaeldienTime = 0;
client.Entity.Update(_String.Effect, "accession6", true);
client.MessageBox("Finishd the Time ",
(p) => { }, null);
return;
}
}
#endregion
وبعد كدا هتروح ملف Entity وتبحث عن
public Time32 DeathStamp
في الكود دا هتضيف
allaeldin,
وابحث عن
public bool CounterKillSwitch = false;
وضيف فوقها
public byte alaaeldienTime;
وبعدين افتح الباكت هاندلر وابحث عن
case 1128:
وهتضيف تحت القوس
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
return;
وبعدين هنبحث عن
case 1060020:
وتحت القوس هتحط
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
return;
وهتنزل تحت شويه هتلاقي
case 1060021:
هتضيف تحت القوس برده
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
return;
ونفس اللي عملنا في الاتنين اللي فاتو دول هنلاقيهم متكررين تحت بعض لحد نهايه الكود خالص هتضيف تحت القوس برده نفس الكود اللي هوا دا
if (client.Entity.ContainsFlag(Network.GamePackets.Up date.Flags2.alaaeldien) && client.Entity.ContainsFlag(Network.GamePackets.Upd ate.Flags2.alaaeldien2))
return;
وبعدين هتروح علي ملف هاندل وتبحث عن
case 7001:
ضيف
if (attacker.ContainsFlag(Network.GamePackets.Update. Flags2.alaaeldien) && attacker.ContainsFlag(Network.GamePackets.Update.F lags2.alaaeldien2))
return;
ندخل بقي علي شغل النافي كات
506070 0 0 allaeldinTC 2 45010 -1 1002 310 277 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
506071 0 0 aladdinPhon 2 45010 -1 1011 190 272 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
506072 0 0 aladdinApe 2 45010 -1 1020 567 584 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
506073 0 0 aladdinDis 2 45010 -1 1000 496 649 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
506074 0 0 aladdinBird 2 45010 -1 1015 723 573 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
ودي الايتمات هتضيفها في الايتمز وفي الايتم تايب في الكلينت
2152180@@[AladdinP1]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152181@@[AladdinP2]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152182@@[AladdinP3]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152183@@[AladdinP4]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
في الكلينت
افتح ani/ItemMinIcon وفي اخر الملف ضيف دول
[Item2152180]
FrameAmount=1
Frame0=data/ItemMinIcon/2152180.dds
[Item2152181]
FrameAmount=1
Frame0=data/ItemMinIcon/2152181.dds
[Item2152182]
FrameAmount=1
Frame0=data/ItemMinIcon/2152182.dds
[Item2152183]
FrameAmount=1
Frame0=data/ItemMinIcon/2152183.dds
وبعدين افتح ملف itemtype بعد فك التشفير وضيف دول
2152180@@[AladdinP1]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152181@@[AladdinP2]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152182@@[AladdinP3]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
2152183@@[AladdinP4]@@0@@0@@0@@0@@0@@0@@0@@0@@0@@0@@3000@@50510@@0@@0@ @0@@0@@0@@0@@0@@199@@199@@0@@0@@0@@0@@0@@0@@0@@0@@ 0@@1@@1000@@0@@0@@0@@50000@@0@@0@@0@@0@@0@@0@@0@@0 @@0@@0@@0@@0@@0@@0@@0@@Aladdin~Event@@Are~You~Brav e~To~Open~It~?,The~Quest~Coded~By~Mr~AhmedBakkar.@ @5@@0@@0@@0@@14040@@500@@
تبقي صور ال DDS
الكوسته قديمه والباتش كان مرفوع علي الخليج وده اتقفل
فانا اسيبكم انتم تعملوا الصور الي تعجبك