المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : كوسته حرب التيمات


محمد ياسر
2019-05-07, 12:56 PM
شـرح الـكـويست
الـكويست بـبتدا الساعه 19 في اللعبه اللي هو 7 و بتنتهي 7 و نص
بـيـجيلك اوتو انفيت بدوس عليه هيـوديك عند الراجل بتاع الكويست
والـكويست هتبقي عباره عن تـيـم قـصاد تـيم ||وفي شـروط عشان تدخلها
اللي يـدخلها لازم يـكون ال TeamLeader طبعا هيدخل بالتيم بتاعه
ولازم يـكون معاه الايتم بـتاع الكـويست اللي هـي
1-Strong
2-Team
ولازم يـكون معاك مـن كل واحده 5 والـايتم دي هتجبهم من الوحوش بتاعت
التون اللي هـما Phesant
هـتجيب الايتم تروح تكلم الراجل هيدخلك الـكويست و هياخد منك الايتم
وهيديك 10 مـليون سبس و ستادي بـوينتس وبـعد مـا تدخل طبعا في تيمات هتلاعبك جوا
ولازم تموت كل التيمات اللي قصادك عشان تـكسب وبعد ما تموتهم التيم ليدر هيكلم
الرجل اللي هـيخرجو و اللي هـيديـلو الـجـايزه واالي هـي برده 10 مـليون سبس
===== كـده خـلصنا الـشـرح نـدخل في الاضـاافات تــابع معايه =====
افتح ملف Npcs.cs وضيف دول


#region StrongTeam By [LeGoOo-TeamXor]
#region Winner of StrongTeam
case 666644:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hey there " + client.Entity.Name + " Would you like to claim your Prize?.");
dialog.Option("Yes Please", 1);
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
case 1:
{

if (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 00 && DateTime.Now.Minute < 30)
{

Conquord.Game.ConquerStructures.DailyQuest.CheackS pouse();
if (Conquord.Game.ConquerStructures.Daily.howmanyinma p3 == 1)
{
client.Entity.ConquerPoints += 10000000;
Conquord.Kernel.SendWorldMessage(new Message("Congratulations! The Monster " + client.Team.TeamLeader + " claimed the prize 10kk Frome StrongTeam war.", System.Drawing.Color.Black, Message.Center), Program.Values);

//LeGoOo
//client.Entity.SendSpawn(client, true);
client.Entity.Teleport(1002, 301, 278);

}
else
{
dialog.Text("There are still " + Daily.howmanyinmap3 + " players in the map kill it first to claim prize!");
dialog.Option("okay", 255);
dialog.Send();
break;
}
}
else
{
dialog.Text("Hey there " + client.Entity.Name + "You can only claim the prize when the time on or after 13:10");
dialog.Option("okay", 255);
dialog.Send();
break;
}
break;
}
}
break;
}
#endregion
#region StrongTeam Quest
case 66655:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Do you Want To Go To StrongTeam Event !! ");
dialog.Option("Yes I want to Join.", 1);
dialog.Option("What is this?.", 2);
dialog.Option("No THX.", 255);
dialog.Send();
break;
}
case 1:
{

// if (DateTime.Now.Minute >= 40 && DateTime.Now.Minute < 45)
if (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 00 && DateTime.Now.Minute < 30)
{
if (client.Team != null && client.Team.TeamLeader)
{
if (client.Inventory.Contains(320201, 5))
{
if (client.Inventory.Contains(320202, 5))
{
client.Inventory.Remove(320201, 5);
client.Inventory.Remove(320202, 5);
client.Entity.ConquerPoints += 10000000;
client.Entity.StudyPoints += 1000;
foreach (Client.GameClient Teammate in client.Team.Teammates)
{
if (Teammate != null)
{
Random R = new Random();
int Nr = R.Next(1, 3);
if (Nr == 1) Teammate.Entity.Teleport(2255, 225, 124);
if (Nr == 2) Teammate.Entity.Teleport(2255, 225, 124);
if (Nr == 3) Teammate.Entity.Teleport(2255, 225, 124);

}
else
{
dialog.Text("Sorey You Dont Leadr Team . ");
dialog.Text("You Don't Have All Item . ");
dialog.Option("I don't care.", 255);
dialog.Send();
break;
}
}
}
else
{
dialog.Text("sign up to StrongTeam Event Every tuesdy in H : 7.00 to 7.30 . ");
dialog.Option("I don't care.", 255);
dialog.Send();
}
break;
}
}
}
}
case 2:
{
client.Send(new Message("عفواً لايمكن عرض الروابط في الإرشيف", System.Drawing.Color.Red, Network.GamePackets.Message.Website));
break;
}
}
break;
}
#endregion
#endregion StrongTeam By [LeGoOo-TeamXor]


وافتح handle.cs وحط دول



#region StrongTeam

if (attacker.MapID == 2255)//LeGoOo
{//TeamXor
if (attacked.UID == 516090 )
{
//if (attacker.PKMode != Enums.PKMode.Team)

// return false;
}

}
#endregion StrongTeam


وفي world.cs وحط ده



#region new mobs
if (DateTime.Now.Hour == 19 && DateTime.Now.Minute >= 00 && DateTime.Now.Minute < 30)
{
Kernel.SendWorldMessage(new Network.GamePackets.Message("StrongTeam War has begun! Go to Challenge Other Players !", System.Drawing.Color.White, Network.GamePackets.Message.Center), Program.GamePool);
client.MessageBox("Monsters War has begun! Would you like to join? [Prize: 10kk CPs]",
(p) => { p.Entity.Teleport(1002, 335, 267); }, null, 60);
}
#endregion


وفي Daildy.cs حط ده



public static void CheackAlive7()
{
howmanyinmap2 = 0;
foreach (Client.GameClient client in Program.Values)
{
if (client.Entity.MapID == 2233 && client.Entity.Hitpoints >= 1)
{
howmanyinmap2 += 1;
Conquer_Online_Server.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Players Alive in StrongTeam War: " + howmanyinmap2 + " ", System.Drawing.Color.Black, Conquer_Online_Server.Network.GamePackets.Message. FirstRightCorner), Program.Values);
}

}
}


وفي MonesterTable.cs ح\ ده


#region StrongTeam Event
if (Name == "Phesant")
{ //LeGoOo

uint ItemID = 0;
byte type1 = 30;
for (int i = 0; i < 12; i++)
{
type1 = (byte)Kernel.Random.Next(1, 2);
switch (type1)
{
case 1:
ItemID = 320201;
break;
case 2:
ItemID = 320202;
break;


}
var infos = Database.ConquerItemInformation.BaseInformations[ItemID];
ushort X = Owner.X, Y = Owner.Y;
Game.Map Map = Kernel.Maps[Owner.MapID];
if (Map.SelectCoordonates(ref X, ref Y))
{
Network.GamePackets.FloorItem floorItem = new Network.GamePackets.FloorItem(true);
floorItem.Item = new Network.GamePackets.ConquerItem(true);
floorItem.Item.Color = (Conquer_Online_Server.Game.Enums.Color)Kernel.Ran dom.Next(4, 8);
floorItem.Item.ID = ItemID;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MaximDurability = infos.Durability;
floorItem.Item.Durability = infos.Durability;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = ItemID;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time32.Now;
floorItem.ItemColor = floorItem.Item.Color;
floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;
while (Map.Npcs.ContainsKey(floorItem.UID))

floorItem.UID = Network.GamePackets.FloorItem.FloorUID.Next;

Map.AddFloorItem(floorItem);

SendScreenSpawn(floorItem);
}
}
Kernel.Spawn = false;
killer.SubClasses.StudyPoints += 50;
killer.ConquerPoints += 100;
Conquer_Online_Server.Kernel.SendWorldMessage(new Conquer_Online_Server.Network.GamePackets.Message("Congratulations! " + killer.Name + " Has Killed " + Name + "and dropped A Rar Items!", Message.TopLeft));
return;
}
#endregion


وروح علي النفي كات و ضيف المابه دي



2233 1844 7 0


والان بي سهات دي



66655 0 0 StrongTeam 2 45010 -1 1002 301 357 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
66644 0 0 StronTeamWinner 45010 -1 2255 225 124


حط دول في items في السورس و itemtype في الكلينت




320201@@[~~Strong~~]@@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@@Strong~Team@@Are~You~Brave~ To~Open~It~?,The~Quest~Coded~By~Mr~LeGoOo.@@5@@0@@ 0@@0@@14040@@500@@
320202@@[~~Team~]@@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@@Strong~Team@@Are~You~Brave~ To~Open~It~?,The~Quest~Coded~By~Mr~LeGoOo.@@5@@0@@ 0@@0@@14040@@500@@


وفي ItemMinIcon حط



[Item320201]
FrameAmount=1
Frame0=data/ItemMinIcon/StrongTeam1.png

[Item320202]
FrameAmount=1
Frame0=data/ItemMinIcon/StrongTeam2.png


دلوقتي اتختار صورتين من ملف ItemMinIcon
وتسميهم بالاسم دول
StrongTeam2.png
StrongTeam1.png

وكـده مـوضوعي انتهي اي استفسار سيبو في رد
بالتوفيق للجميع