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

مشاهدة النسخة كاملة : كويستة جديده ادخل وشوف


محمد ياسر
2019-06-28, 07:57 PM
السلام عليكم ورحمة الله وبركاته
ندخل علي الموضوع علي طول
اولا: شرح الكويسة
اولا تكلم ان بي سي دا يوديك مابه الي هيه Hell


تخش Nps تضيف الان بي سي دا
#region Monster Hunter Q
case 5943:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Welcome You Are The Monster Hunter" + client.Entity.Name + " Here In Titan.Co Best Server i can Teleport to Monster Woled ?");
dialog.Option("Teleport me but dont Tell any one ...", 1);
dialog.Option("I want to check my Points.", 2);
dialog.Text("hehehe ok XD i will do ");
dialog.Send();
break;
}
case 1:
{
client.Entity.Teleport(2044, 104, 114);
// oras
Network.GamePackets.NpcReply npc = new Network.GamePackets.NpcReply(6, "Welcome " + client.Entity.Name + " To The Hell ");
npc.OptionID = 255;
client.Send(npc.ToArray());
Conquer_Online_Server.Kernel.SendWorldMessage(new Message("Warnings! The Hunter " + client.Entity.Name + " He is Name Black go go Kill hem in Monster Hunter Map ", System.Drawing.Color.Black, Message.Center), Program.GamePool);
break;
}
case 2:
{
dialog.Text("Your Points Count is : " + client.Entity.*******OrasPoints + " , How can i help you?!");
dialog.Option("Nothing Thanks!", 255);
dialog.Avatar(50);
dialog.Send();
break;
}
}
break;
}
#endregion


نكمل 2 ان بي سي
الي هما بتوع الوحوش تكلم الاول يطلعلك Dark Sidra الي هوى بيدي 400 بوينت


الكود بتاعو
#region DarkSidra
case 3714:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("You Want Soumone DarkSidra Monster for 5k cps Its So hard And No for Noops ");
dialog.Option("yah sure i can kill it!", 1);
dialog.Option("whats? no thanks", 255);
dialog.Avatar(31);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.ConquerPoints >= 5000)
{
client.Entity.ConquerPoints -= 5000;
Database.MonsterInformation monster = new Conquer_Online_Server.Database.MonsterInformation( );
monster.Boss = true;
monster.Hitpoints = 50000000;
monster.Level = 250;
monster.Mesh = 1516;
monster.Name = "DarkSidra";
monster.MaxAttack = 10500;
monster.AttackRange = 5;
monster.AttackType = 2;
monster.AttackSpeed = 1000;
monster.ViewRange = 2;
monster.MoveSpeed = 200;
monster.RunSpeed = 500;
monster.MinAttack = 590000;
Game.Entity entity = new Game.Entity(Game.EntityFlag.Monster, false);
entity.MapObjType = Game.MapObjectType.Monster;
entity.MonsterInfo = monster;
entity.MonsterInfo.Owner = entity;
entity.Name = "DarkSidra";
entity.MinAttack = monster.MinAttack;
entity.MaxAttack = entity.MagicAttack = monster.MaxAttack;
entity.Hitpoints = entity.MaxHitpoints = monster.Hitpoints;
entity.Body = monster.Mesh;
entity.Level = monster.Level;
entity.Defence = 5000;
entity.X = client.Entity.X;
entity.Y = client.Entity.Y;
entity.UID = 500002;
entity.MapID = client.Entity.MapID;
entity.SendUpdates = true;
client.Map.RemoveEntity(entity);
client.Map.AddEntity(entity);
Kernel.SendWorldMessage(new Message("Congratulations! The Monster Hnuter " + client.Entity.Name + " Has Sumone DarkDSidra Monster in BlaCk Map !!!.", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "You must have r inventory."));
}
break;
}
}
break;
}
#endregion


و التاني دا بيطلعلك الوحش التاني الي هوى Genzo دا سهل شويه بس بيدي 270 بوينت

الكود
#region Genzo
case 1838:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("You Want Soumone Genzo Monster for 5k cps Its So hard And No for Noops ");
dialog.Option("yah sure i can kill it!", 1);
dialog.Option("whats? no thanks", 255);
dialog.Avatar(31);
dialog.Send();
break;
}
case 1:
{
if (client.Entity.ConquerPoints >= 5000)
{
client.Entity.ConquerPoints -= 5000;
Database.MonsterInformation monster = new Conquer_Online_Server.Database.MonsterInformation( );
monster.Boss = true;
monster.Hitpoints = 10000000;
monster.Level = 230;
monster.Mesh = 1515;
monster.Name = "Genzo";
monster.MaxAttack = 10000;
monster.AttackRange = 5;
monster.AttackType = 2;
monster.AttackSpeed = 800;
monster.ViewRange = 2;
monster.MoveSpeed = 400;
monster.RunSpeed = 700;
monster.MinAttack = 390000;
Game.Entity entity = new Game.Entity(Game.EntityFlag.Monster, false);
entity.MapObjType = Game.MapObjectType.Monster;
entity.MonsterInfo = monster;
entity.MonsterInfo.Owner = entity;
entity.Name = "Genzo";
entity.MinAttack = monster.MinAttack;
entity.MaxAttack = entity.MagicAttack = monster.MaxAttack;
entity.Hitpoints = entity.MaxHitpoints = monster.Hitpoints;
entity.Body = monster.Mesh;
entity.Level = monster.Level;
entity.Defence = 4000;
entity.X = client.Entity.X;
entity.Y = client.Entity.Y;
entity.UID = 500002;
entity.MapID = client.Entity.MapID;
entity.SendUpdates = true;
client.Map.RemoveEntity(entity);
client.Map.AddEntity(entity);
Kernel.SendWorldMessage(new Message("Congratulations! The Monster Hnuter " + client.Entity.Name + " Has Sumone Genzo Monster in BlaCk Map !!!.", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
else
{
client.Send(new Network.GamePackets.NpcReply(6, "You must have r inventory."));
}
break;
}
}
break;
}
#endregion


الان بي سي الاخير الي هوى البياع seller بيبيع كاس و في اي بي و سي بي اس بالبوينتات بتاعت الكويست

الكود بتاعو
#region Monster Hunter Q Seller
case 5688:
{
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hello! Monster Hunter you are The Hero I sell Gold Prize Or Cps Or Vip For Monster Hunter Points This Just In Titan.Co!");
dialog.Text("/nWhich Item would you like to buy?");
dialog.Option("GoldPrize [350000]", 1);
dialog.Option("vip 4 [180000]", 2);
dialog.Option("600k cps [4000]", 3);
dialog.Send();
break;
}
case 11:
{
dialog.Text("Hello! I sell Sub-Classes & Promotion items!");
dialog.Text("/nWhich Item would you like to buy?");
//oras
//titan //
dialog.Send();
break;
}
case 13:
{
if (client.Entity.ConquerPoints >= 1050)
{
client.Entity.ConquerPoints -= 1050;
client.Inventory.Add(723342, 0, 1);
}
else
{
dialog.Text("You don't have enough !");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
case 1:
{
if (client.Entity.*******OrasPoints >= 150000)
{
client.Entity.*******OrasPoints -= 150000;
client.Inventory.Add(2100075, 0, 1);
}
else
{
dialog.Text("You don't have enough points!");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
case 2:
{
if (client.Entity.*******OrasPoints >= 90000)
{
client.Entity.*******OrasPoints -= 90000;
client.Entity.VIPLevel = 4;
}
else
{
dialog.Text("You don't have enough pints!");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
case 3:
{
if (client.Entity.*******OrasPoints >= 4000)
{
client.Entity.*******OrasPoints -= 4000;
client.Entity.ConquerPoints += 600000;
}
else
{
dialog.Text("You don't have enough cps!");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
case 4:
{
if (client.Entity.ConquerPoints >= 10000)
{
client.Entity.ConquerPoints -= 10000;
client.Inventory.Add(1088002, 0, 10);
}
else
{
dialog.Text("You don't have enough cps!");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
case 5:
{
if (client.Entity.ConquerPoints >= 10000)
{
client.Entity.ConquerPoints -= 10000;
client.Inventory.Add(721261, 0, 10);
}
else
{
dialog.Text(" AHHH You don't have enough cps!");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
case 6:
{
if (client.Entity.ConquerPoints >= 10000)
{
client.Entity.ConquerPoints -= 10000;
client.Inventory.Add(711188, 0, 1);
}
else
{
dialog.Text("You don't have enough cps!");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
case 7:
{
if (client.Entity.ConquerPoints >= 10000)
{
client.Entity.ConquerPoints -= 10000;
client.Inventory.Add(721259, 0, 5);
}
else
{
dialog.Text("You don't have enough cps!");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
case 8:
{
if (client.Entity.ConquerPoints >= 10000)
{
client.Entity.ConquerPoints -= 10000;
client.Inventory.Add(723087, 0, 20);
}
else
{
dialog.Text("You don't have enough cps!");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
case 9:
{
if (client.Entity.ConquerPoints >= 10000)
{
client.Entity.ConquerPoints -= 10000;
client.Inventory.Add(753003, 0, 5);
}
else
{
dialog.Text("You don't have enough cps!");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
case 10:
{
if (client.Entity.ConquerPoints >= 10000)
{
client.Entity.ConquerPoints -= 10000;
client.Inventory.Add(723903, 0, 40);
}
else
{
dialog.Text("You don't have enough cps!");
dialog.Option("DAHH!", 255);
dialog.Send();
}
break;
}
}
break;
}
#endregion

خلصنه الان بي سي هان
نخش على Entity.cs
تدور على الكود دا
public uint Points = 0;


و تضيف تحتو على طول
public uint *******OrasPoints;
public Time32 *******OrasPointsStamp;

بعدين تخش على EntityTable.cs
دور على

client.ExpBalls = reader.ReadByte("ExpBalls");

تحتو على طول تضيف
client.Entity.*******OrasPoints = reader.ReadUInt32("*******OrasPoints");
client.Entity.*******OrasPointsStamp = Time32.Now;


تمام
في نفس المكان دور على
.Set("PKPoints", e.PKPoints)

و ضيف تحتو
.Set("*******OrasPoints", e.*******OrasPoints)


تمام
نخش بقى على MonsterTable.cs
دور على الكود دا

if (Name == "TeratoDragon")

فوقو على طول ضيف الكود دا
if (Name == "DarkSidra")
{
if (killer.Owner.Team != null)
foreach (var team in killer.Owner.Team.Teammates)
team.Entity.SubClasses.StudyPoints += 1000;
killer.*******OrasPoints += 400;
Kernel.SendWorldMessage(new Message("Congratulations! The Hunter #41" + killer.Name + "#41 Team Has Kill DarkSidra and Lader of team Get 400 Points and Each one in team get 1000 study point.", System.Drawing.Color.White, Message.Center), Program.GamePool);
}
if (Name == "Genzo")
{
if (killer.Owner.Team != null)
foreach (var team in killer.Owner.Team.Teammates)
team.Entity.SubClasses.StudyPoints += 1000;
killer.*******OrasPoints += 270;
Kernel.SendWorldMessage(new Message("Congratulations! The Hunter #41" + killer.Name + "#41 Team Has Kill Genzo and Lader of team Get 270 Points and Each one in team get 1000 study point.", System.Drawing.Color.White, Message.Center), Program.GamePool);
}


شكرا ل عبدو ماتركس على تعديل الكود دا

خلصنا دلوقتي شغل النافي كات
تفتح النافي كات تدوس كليك يمين على entities و تختار Design Table
و تضيف الحقل دا زي ا في الصوره
*******OrasPoints bigint 18 0 0 0 0 0 0 0 0


دلوقتي نخش nps في النافي كات
5943 ده id انبي سي الي ايبداء ليك المهمه دا تحطو انت في اي مكان مش مشكله
وحط دول كمان
1838 0 0 Monster Hunterq1 2 1570 -1 2044 96 115
3714 0 0 Monster Hunter q 2 1570 -1 2044 105 105
5688 0 0 Seller Hunter q3 2 8730 -1 2044 94 107



كده الكوسته انتهت بالتوفيق