محمد ياسر
2019-06-21, 10:49 AM
شرح الكويستة يا جدعان
انت بتدخل الكويستة عادى لما تموت حد بيطير واتخد بوينتات لما تموت حد ولازم تموت 20 واحد عشان تكسب الكويستة
افتح NPC.cs
وضيف فيها دول
#region NoDie
case 50155:
{
switch (npcRequest.OptionID)
{
case 0:
{
client.Entity.Update(_String.Effect, "break_start", true);
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join No Die PKWar?.");
dialog.Text("you can SignUp during xx:10 to xx:15 and first 8 Players will get 20 Points.");
dialog.Text("faster than any player else will be in the No Die and obtain Rewards GoodLuck!");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 15)
{
client.Entity.Teleport(5928, 50, 50);
}
else
{
dialog.Text("NoDie Pk War is held during xx:10 to xx:15 you have 5 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Nodie PkWinner
case 50166:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Claim No Die PKWar Prize?.");
dialog.Text("You Should Have 20 DiePoints .");
//dialog.Text("faster than any player else will be in the Top8Champions and obtain Rewards GoodLuck!");
dialog.Option("Yes Please", 1);
dialog.Option("Twin City", 3);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 3:
{
client.Entity.Teleport(1002, 391, 371);
client.Entity.RemoveFlag(Update.Flags.Ride);
break;
}
case 1:
{
if (DateTime.Now.Minute >= 15 && DateTime.Now.Minute < 20)
{
if (client.Nodie >= 20)
{
client.Entity.ConquerPoints += 200000;
Network.PacketHandler.WorldMessage("Congratulations! " + client.Entity.Name + "! Has Got Reward For 200.000 No Die Quest Becouse Collect 20 point");
client.Entity.Teleport(1002, 391, 371);
}
else
{
dialog.Text("Sorry you dont have 20 Die Points yet come again later ");
dialog.Option("sorry.", 255);
dialog.Send();
}
}
else
{
dialog.Text("sorry you can only claim prize btw xx:15 to xx:20 ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
وافتح
GameClient او GameState
ابحث عن
public int TopDlClaim = 0;
ضيف دا تحتها
public uint Nodie = 0;
وافتح
Entity.cs
ابحث عن
#region Oras Arena
وضيف دا فيها
if (killer.MapID == 5928)
{
if (killer.MapID == 5928)
{
AddFlag(0x8000000);
AddFlag(Network.GamePackets.Update.Flags2.IceBlock );
FlyTime = 20;
FlyStamp = Time32.Now;
FreezeTime = 20;
FreezeStamp = Time32.Now;
GameClient owner = killer.Owner;
owner.Nodie++;
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Well Done : You Kill got 1 No Die Point You Have Now " + killer.Owner.Nodie + " Die Points!");
npc.OptionID = 255;
killer.Owner.Send(npc.ToArray());
//HeshamYuriServer.Game.ConquerStructures.Society.No Die.AddScore(, Owner.UID)
Hitpoints = MaxHitpoints;
//Hitpoints = Math.Min(Hitpoints, MaxHitpoints);
return;
}
}
ابحث برضو فى نفس الملف عن
public bool MagicDefenderOwner = false;
ضيف دا تحتها
public byte FlyTime;
public Time32 FreezeStamp;
public byte FreezeTime;
وافتح
World.cs
ابحث عن
#region Monthly PK
اقفلها من السالب وحط دا فوقها
#region NoDie By HeshamYuri
if ((Now64.Minute == 10) && (Now64.Second == 01))
{
Kernel.SendWorldMessage(new Message("NoDie Has began!", Color.White, Message.TopLeft), Program.GamePool);
foreach (var client in Program.GamePool)
client.MessageBox("NoDie began! Would you like to join?",
p => { p.Entity.Teleport(1002, 459, 352); }, null, 60);
}
#endregion
كدا تمام
نخش على النافى كات
افتح NPC
وضيف دول فيها
50155 0 0 NoDie 2 2895 -1 1002 459 350 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
50166 0 0 NoDie E 2 28830 -1 5928 52 74 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
وافتح Maps
وضيف المابة دى
5928 700 7 0
عشان محدش يسافر فى المابة ولا يركب الحصان والكلام دا
افتح
Constants.cs
ابحث عن
public static readonly System.Collections.Generic.List<ulong> PKFreeMaps2 = new System.Collections.Generic.List<ulong
ضيف دا فيها
5928,
وابحث برضو عن
public static readonly System.Collections.Generic.List<ushort> PKFreeMaps = new System.Collections.Generic.List<ushort
ضيف برضو دا
5928,
بس كدا تمام
انت بتدخل الكويستة عادى لما تموت حد بيطير واتخد بوينتات لما تموت حد ولازم تموت 20 واحد عشان تكسب الكويستة
افتح NPC.cs
وضيف فيها دول
#region NoDie
case 50155:
{
switch (npcRequest.OptionID)
{
case 0:
{
client.Entity.Update(_String.Effect, "break_start", true);
dialog.Text("Hey there " + client.Entity.Name + " Would you like to join No Die PKWar?.");
dialog.Text("you can SignUp during xx:10 to xx:15 and first 8 Players will get 20 Points.");
dialog.Text("faster than any player else will be in the No Die and obtain Rewards GoodLuck!");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{
if (DateTime.Now.Minute >= 10 && DateTime.Now.Minute <= 15)
{
client.Entity.Teleport(5928, 50, 50);
}
else
{
dialog.Text("NoDie Pk War is held during xx:10 to xx:15 you have 5 min to signup ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region Nodie PkWinner
case 50166:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to Claim No Die PKWar Prize?.");
dialog.Text("You Should Have 20 DiePoints .");
//dialog.Text("faster than any player else will be in the Top8Champions and obtain Rewards GoodLuck!");
dialog.Option("Yes Please", 1);
dialog.Option("Twin City", 3);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 3:
{
client.Entity.Teleport(1002, 391, 371);
client.Entity.RemoveFlag(Update.Flags.Ride);
break;
}
case 1:
{
if (DateTime.Now.Minute >= 15 && DateTime.Now.Minute < 20)
{
if (client.Nodie >= 20)
{
client.Entity.ConquerPoints += 200000;
Network.PacketHandler.WorldMessage("Congratulations! " + client.Entity.Name + "! Has Got Reward For 200.000 No Die Quest Becouse Collect 20 point");
client.Entity.Teleport(1002, 391, 371);
}
else
{
dialog.Text("Sorry you dont have 20 Die Points yet come again later ");
dialog.Option("sorry.", 255);
dialog.Send();
}
}
else
{
dialog.Text("sorry you can only claim prize btw xx:15 to xx:20 ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
وافتح
GameClient او GameState
ابحث عن
public int TopDlClaim = 0;
ضيف دا تحتها
public uint Nodie = 0;
وافتح
Entity.cs
ابحث عن
#region Oras Arena
وضيف دا فيها
if (killer.MapID == 5928)
{
if (killer.MapID == 5928)
{
AddFlag(0x8000000);
AddFlag(Network.GamePackets.Update.Flags2.IceBlock );
FlyTime = 20;
FlyStamp = Time32.Now;
FreezeTime = 20;
FreezeStamp = Time32.Now;
GameClient owner = killer.Owner;
owner.Nodie++;
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Well Done : You Kill got 1 No Die Point You Have Now " + killer.Owner.Nodie + " Die Points!");
npc.OptionID = 255;
killer.Owner.Send(npc.ToArray());
//HeshamYuriServer.Game.ConquerStructures.Society.No Die.AddScore(, Owner.UID)
Hitpoints = MaxHitpoints;
//Hitpoints = Math.Min(Hitpoints, MaxHitpoints);
return;
}
}
ابحث برضو فى نفس الملف عن
public bool MagicDefenderOwner = false;
ضيف دا تحتها
public byte FlyTime;
public Time32 FreezeStamp;
public byte FreezeTime;
وافتح
World.cs
ابحث عن
#region Monthly PK
اقفلها من السالب وحط دا فوقها
#region NoDie By HeshamYuri
if ((Now64.Minute == 10) && (Now64.Second == 01))
{
Kernel.SendWorldMessage(new Message("NoDie Has began!", Color.White, Message.TopLeft), Program.GamePool);
foreach (var client in Program.GamePool)
client.MessageBox("NoDie began! Would you like to join?",
p => { p.Entity.Teleport(1002, 459, 352); }, null, 60);
}
#endregion
كدا تمام
نخش على النافى كات
افتح NPC
وضيف دول فيها
50155 0 0 NoDie 2 2895 -1 1002 459 350 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
50166 0 0 NoDie E 2 28830 -1 5928 52 74 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
وافتح Maps
وضيف المابة دى
5928 700 7 0
عشان محدش يسافر فى المابة ولا يركب الحصان والكلام دا
افتح
Constants.cs
ابحث عن
public static readonly System.Collections.Generic.List<ulong> PKFreeMaps2 = new System.Collections.Generic.List<ulong
ضيف دا فيها
5928,
وابحث برضو عن
public static readonly System.Collections.Generic.List<ushort> PKFreeMaps = new System.Collections.Generic.List<ushort
ضيف برضو دا
5928,
بس كدا تمام