+1,Db and Mets Droping in All Mobs

08/20/2014 01:55 arneljan#1
Help how to make code for +1 drop item,Db and Mets in all Mobs. and Where to Code it
08/20/2014 02:46 Novakhan#2
:facepalm:

Learn before tryin' to create things. Your question is "Can someone give me a code so the monsters drops +1 stones, Dragonballs and Meteors then tell me where to put it in the leeched source I'm using?"
08/20/2014 16:00 arneljan#3
IS this Right coz its not working and wont drop +1 item Im using 5765 Source



if (Kernel.Success(0.097 * ServerRates.Rates.Craft))
{
//Console.WriteLine("" + killer.Name + " found a plus one item on this [" + killer.Owner.IP + "]");
killer.Owner.Inventory.Add(id, 1, 1);
killer.Owner.Send(ServerBase.Constants.DropPlus);
//Conquer_Online_Server.ServerBase.Kernel.SendWorldM essage(new Conquer_Online_Server.Network.GamePackets.Message( "A +1 item was dropped from the monster killed by " + killer.Name + "!", System.Drawing.Color.IndianRed, 2012), Conquer_Online_Server.ServerBase.Kernel.GamePool.V alues);
// Program.Plus1Chance = 0;
}
08/20/2014 16:12 KraHen#4
Quote:
Originally Posted by arneljan View Post
IS this Right coz its not working and wont drop +1 item Im using 5765 Source



if (Kernel.Success(0.097 * ServerRates.Rates.Craft))
{
//Console.WriteLine("" + killer.Name + " found a plus one item on this [" + killer.Owner.IP + "]");
killer.Owner.Inventory.Add(id, 1, 1);
killer.Owner.Send(ServerBase.Constants.DropPlus);
//Conquer_Online_Server.ServerBase.Kernel.SendWorldM essage(new Conquer_Online_Server.Network.GamePackets.Message( "A +1 item was dropped from the monster killed by " + killer.Name + "!", System.Drawing.Color.IndianRed, 2012), Conquer_Online_Server.ServerBase.Kernel.GamePool.V alues);
// Program.Plus1Chance = 0;
}
What kind of abomination of a source is that??
08/21/2014 22:48 arneljan#5
I dont know he said it work to all version of source it drop Plus 1 item in monster just need to edit it in MonsterTable.

Quote:
Originally Posted by KraHen View Post
What kind of abomination of a source is that??
08/21/2014 23:02 Smallxmac#6
lolol you payed top dollars for that!
08/22/2014 02:25 turk55#7
Quote:
Originally Posted by arneljan View Post
IS this Right coz its not working and wont drop +1 item Im using 5765 Source



if (Kernel.Success(0.097 * ServerRates.Rates.Craft))
{
//Console.WriteLine("" + killer.Name + " found a plus one item on this [" + killer.Owner.IP + "]");
killer.Owner.Inventory.Add(id, 1, 1);
killer.Owner.Send(ServerBase.Constants.DropPlus);
//Conquer_Online_Server.ServerBase.Kernel.SendWorldM essage(new Conquer_Online_Server.Network.GamePackets.Message( "A +1 item was dropped from the monster killed by " + killer.Name + "!", System.Drawing.Color.IndianRed, 2012), Conquer_Online_Server.ServerBase.Kernel.GamePool.V alues);
// Program.Plus1Chance = 0;
}
[Only registered and activated users can see links. Click Here To Register...]
08/30/2014 00:22 Ahmed El5WaGa#8
put this in Database , class MonsterInformation , public void Drop

to drop DBs and Mets xD

Quote:
if (Owner.MapID == 1002 && Kernel.PercentSuccess(0.1) && Owner.Level <= 70)
{
uint Uid = 0;
byte type = (byte)Kernel.Random.Next(1, 255);
switch (type)
{
case 1: Uid = 729536; break;
case 2: Uid = 1088000; break;
}
if (Uid != 0)
{
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 = Uid;
floorItem.Item.MaximDurability = 65355;
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 = 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);
}
}
}
can change

PercentSuccess and byte type = Kernel.Random.Next(1, 500);

to make it easy or hard xD