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

مشاهدة النسخة كاملة : كوست كتب cps


محمد ياسر
2019-05-07, 12:49 PM
بسم الله الرحمن الرحيم

اولا الكوسته دي عباره عن منطقه زاي ال كروس سيرفر

بتقتل وحوش و بيجيك كتاب كل 5 كتب بتخد منهم سبس

و في 3 انواع من الكتب دي في نوع تضرب منو 5 يديك سبس

و النوع التاني 10 يديك ايتمات

و دلواتي معا شرح و انتا هتفهم و هوريك تضيف ال ايتم مكان الي بيجي ازاي و تغير كمية سبس

نبدا

اولا

تفتح

MonsterTable.cs

هتبحث عن




#region TeratoDragon


لو مش موجود عندك هضيف ال كوسته في اي مكان عندك


#region JewelsEvent
#region RoaringSnake
if (Name == "RoaringSnake" && killer.MapID == 9876)
{
if (Kernel.Rate(30, 1000))
{
if (killer.VIPLevel == 6)
{
if (killer.Owner.Inventory.Count != 40)
{
Random Nr = new Random();
int R = Nr.Next(0, 4);
if (R == 1)
{
killer.Owner.Inventory.Add(3200725, 0, 1);
killer.Owner.Send("You have got 1 JewelSuper in your inventory.");
}
if (R == 2)
{
killer.Owner.Inventory.Add(3200726, 0, 1);
killer.Owner.Send("You have got 1 JewelUltra in your inventory.");
}
if (R == 3)
{
killer.Owner.Inventory.Add(3200727, 0, 1);
killer.Owner.Send("You have got 1 JewelEpic in your inventory.");
}
}
else
{
killer.Owner.Send("Your Inventory is full, remove some place to cann add Jewel items.");
}
return;
}
else
{
uint Uid = 0;
byte type = 3;
for (int i = 0; i < 1; i++)
{
type = (byte)Kernel.Random.Next(1, 3);
switch (type)
{
case 1:
Uid = 3200725;
break;

case 2:
Uid = 3200726;
break;

case 3:
Uid = 3200727;
break;
}
var infos = Database.ConquerItemInformation.BaseInformations[Uid];
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 ConquerItem(true);
floorItem.Item.Color = (Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = Uid;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = Uid;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time64.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); killer.Owner.Send(new Network.GamePackets.Message("" + killer.Name + " killed " + Name + " and dropped [" + infos.Name + "].", System.Drawing.Color.Red, Message.Talk));
}
}
return;
}
}
}
#endregion
#region JewelsBoss
if (Name == "JewelsBoss")
{
if (!killer.ContainsFlag3((ulong)Update.Flags3.AutoHu nting))
{
if (killer.VIPLevel == 6)
{
if (killer.Owner.Inventory.Count != 40)
{
Random Nr = new Random();
int R = Nr.Next(0, 4);
if (R == 1)
{
killer.Owner.Inventory.Add(3200725, 0, 1);
killer.Owner.Send("You have got 1 JewelSuper in your inventory.");
}
if (R == 2)
{
killer.Owner.Inventory.Add(3200726, 0, 1);
killer.Owner.Send("You have got 1 JewelUltra in your inventory.");
}
if (R == 3)
{
killer.Owner.Inventory.Add(3200727, 0, 1);
killer.Owner.Send("You have got 1 JewelEpic in your inventory.");
}
}
else
{
killer.Owner.Send("Your Inventory is full, remove some place to cann add Jewel items.");
}
return;
}
else
{
uint Uid = 0;
byte type = 3;
for (int i = 0; i < 1; i++)
{
type = (byte)Kernel.Random.Next(1, 3);
switch (type)
{
case 1:
Uid = 3200725;
break;

case 2:
Uid = 3200726;
break;

case 3:
Uid = 3200727;
break;
}
var infos = Database.ConquerItemInformation.BaseInformations[Uid];
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 ConquerItem(true);
floorItem.Item.Color = (Enums.Color)Kernel.Random.Next(4, 8);
floorItem.Item.ID = Uid;
floorItem.Item.Plus = floorItem.Item.Plus;
floorItem.Item.MobDropped = true;
floorItem.ValueType = Network.GamePackets.FloorItem.FloorValueType.Item;
floorItem.ItemID = Uid;
floorItem.MapID = Owner.MapID;
floorItem.MapObjType = Game.MapObjectType.Item;
floorItem.X = X;
floorItem.Y = Y;
floorItem.Type = Network.GamePackets.FloorItem.Drop;
floorItem.OnFloor = Time64.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);
Message.WorldMessage(infos.Name + " Has been dropped by " + killer.Name + " at JewelsEvent.");
}
}
return;
}
}
}
#endregion
#endregion


كده خلصنا من Monster

خش علا

Nps.cs

ضيف ال انبسي ده تحت اي انبسي عندك


#region JewelEvent
case 5241:
{
dialog.Avatar(357);
switch (npcRequest.OptionID)
{
case 0:
{
dialog.Text("Hi Mr, " + client.Entity.Name + ", Your welcome in JewelEvent.. Did you want to join?");
dialog.Option("Enter.", 1);
dialog.Option("Informations.", 2);
dialog.Option("No, thanks", 255);
dialog.Send();
break;
}
case 1:
{

client.Entity.Teleport(9876, 250, 250);
client.Send("Note: There is no hunting here.");
break;
}
case 2:
{
dialog.Text("There is some info about this event.");
dialog.Text("\nCollect [20] FlarePack from JewelBoss to receive 200,000 CPS.");
dialog.Text("\nCollect [10] RefineryBadge from JewelBoss to receive Lv6 SacredRefinery.");
dialog.Text("\nCollect [5] NirvanaBox from JewelBoss to receive 50,000 CPS.");
dialog.Option("Ok, thanks", 255);
dialog.Send();
break;
}
}
break;
}
#endregion


ابقا عدل علا الكلام الي مكتوب ده عشان انا عامل نظام صعب في كاتب 200 الف و 50 الف و هكزا

اخري حجا

روح علا



PacketHandler.cs

او


GeneralData.cs

ابحث عن



region Merchant


لو مش موجوده ابحث عن




#region +2StonePack


ضيف ده تحتو


#region JewelEvent
#region JewelEpic
case 3200727:
{
if (client.Inventory.Contains(3200727, 20))
{
client.Inventory.Remove(3200727, 20);
client.Entity.ConquerPoints += 200000;
Message.WorldMessage("Congratulations, " + client.Entity.Name + " Unlocked 20 JewelEpic and received 200,000 CP`s.");
}
else
{
client.Send("You don't have 20 JewelEpic to unlock this box.");
}
break;
}
#endregion
#region JewelUltra
case 3200726:
{
if (client.Inventory.Contains(3200726, 10))
{
client.Inventory.Remove(3200726, 10);
client.Inventory.Add(3004249, 0, 1);
Message.WorldMessage("Congratulations, " + client.Entity.Name + " Unlocked 10 JewelSuper and received Lv6 SacredRefinery.");
}
else
{
client.Send("You don't have 10 JewelSuper to unlock this box.");
}
break;
}
#endregion
#region JewelSuper
case 3200725:
{
if (client.Inventory.Contains(3200725, 5))
{
client.Inventory.Remove(3200725, 5);
client.Entity.ConquerPoints += 50000;
Message.WorldMessage("Congratulations, " + client.Entity.Name + " Unlocked 5 JewelSuper and received 50,000 CP`s.");
}
else
{
client.Send("You don't have 5 JewelSuper to unlock this box.");
}
break;
}
#endregion
#endregion


بكدا انا خلصت الكوسته نخش علا التعديل

ده التعديل علا السبس



client.Entity.ConquerPoints += 50000;


ده تعديل علا الايتم الموجود في شوف انتا عيز تحط اي و غيرو




client.Inventory.Add(3004249, 0, 1);


اتمنا التوفيق للجميع

karem1q
2023-10-09, 07:31 AM
Nice