Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 04:14

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



5575 Source , Monster drop 4-5 items - Issue

Discussion on 5575 Source , Monster drop 4-5 items - Issue within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
5575 Source , Monster drop 4-5 items - Issue

Hello Epvp Members .

5575 Source , Monster drop 4-5 items - Issue

Okay , now am trying to make monster drop 4 or 5 items , i used this code :

PHP Code:
#region Option 1
                    
if (Nr == 1)
                    {
                        
uint ItemID1 410225;
                        var 
infos Database.ConquerItemInformation.BaseInformations[ItemID1];
                        
ushort X Owner.XOwner.Y;
                        
Game.Map Map ServerBase.Kernel.Maps[Owner.MapID];
                        if (
Map.SelectCoordonates(ref Xref 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)ServerBase.Kernel.Random.Next(48);
                            
floorItem.Item.ID ItemID1;
                            
floorItem.Item.MaximDurability infos.Durability;
                            
floorItem.Item.StackSize 1;
                            
floorItem.Item.MaxStackSize infos.StackSize;
                            
floorItem.Item.MobDropped true;
                            
floorItem.ValueType Network.GamePackets.FloorItem.FloorValueType.Item;
                            
floorItem.ItemID ItemID1;
                            
floorItem.MapID Owner.MapID;
                            
floorItem.MapObjType Game.MapObjectType.Item;
                            
floorItem.X;
                            
floorItem.Y;
                            
floorItem.Owner killer.Owner;
                            
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);
                        }
                        
uint ItemID2 420225;
                        var 
infos2 Database.ConquerItemInformation.BaseInformations[ItemID2];
                        if (
Map.SelectCoordonates(ref Xref 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)ServerBase.Kernel.Random.Next(48);
                            
floorItem.Item.ID ItemID2;
                            
floorItem.Item.MaximDurability infos2.Durability;
                            
floorItem.Item.StackSize 1;
                            
floorItem.Item.MaxStackSize infos2.StackSize;
                            
floorItem.Item.MobDropped true;
                            
floorItem.ValueType Network.GamePackets.FloorItem.FloorValueType.Item;
                            
floorItem.ItemID ItemID2;
                            
floorItem.MapID Owner.MapID;
                            
floorItem.MapObjType Game.MapObjectType.Item;
                            
floorItem.X;
                            
floorItem.Y;
                            
floorItem.Owner killer.Owner;
                            
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);
                        }
                        
uint ItemID3 421225;
                        var 
infos3 Database.ConquerItemInformation.BaseInformations[ItemID3];
                        if (
Map.SelectCoordonates(ref Xref 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)ServerBase.Kernel.Random.Next(48);
                            
floorItem.Item.ID ItemID3;
                            
floorItem.Item.MaximDurability infos3.Durability;
                            
floorItem.Item.StackSize 1;
                            
floorItem.Item.MaxStackSize infos3.StackSize;
                            
floorItem.Item.MobDropped true;
                            
floorItem.ValueType Network.GamePackets.FloorItem.FloorValueType.Item;
                            
floorItem.ItemID ItemID3;
                            
floorItem.MapID Owner.MapID;
                            
floorItem.MapObjType Game.MapObjectType.Item;
                            
floorItem.X;
                            
floorItem.Y;
                            
floorItem.Owner killer.Owner;
                            
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);
                        }
                        
uint ItemID4 430225;
                        var 
infos4 Database.ConquerItemInformation.BaseInformations[ItemID4];
                        if (
Map.SelectCoordonates(ref Xref 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)ServerBase.Kernel.Random.Next(48);
                            
floorItem.Item.ID ItemID4;
                            
floorItem.Item.MaximDurability infos4.Durability;
                            
floorItem.Item.StackSize 1;
                            
floorItem.Item.MaxStackSize infos4.StackSize;
                            
floorItem.Item.MobDropped true;
                            
floorItem.ValueType Network.GamePackets.FloorItem.FloorValueType.Item;
                            
floorItem.ItemID ItemID4;
                            
floorItem.MapID Owner.MapID;
                            
floorItem.MapObjType Game.MapObjectType.Item;
                            
floorItem.X;
                            
floorItem.Y;
                            
floorItem.Owner killer.Owner;
                            
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);
                        }
                    }
                    
#endregion 
its worked fine , but when i pick up the items , its give me its damaged items like this picture :




but its become normal , and full of durability when i re-log to the game ....

although when i pick any item else , its working fine ....

any help or hint ?
abdeen is offline  
Old 11/13/2012, 15:44   #2
 
elite*gold: 0
Join Date: Nov 2009
Posts: 342
Received Thanks: 17
try this code
floorItem.Item.Durability = 10;
|xabi| is offline  
Old 11/13/2012, 16:41   #3
 
abdeen's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 475
Received Thanks: 15
Quote:
Originally Posted by |xabi| View Post
try this code
floorItem.Item.Durability = 10;
Ok , i`ll try it ...
abdeen is offline  
Reply


Similar Threads Similar Threads
On the issue of monster
06/22/2012 - Eudemons Online - 0 Replies
- I have a few issues on EO is how to increase the number of monsters and add it to a certain map. - How can I zoom drop items, and I do not want it to fall again, the EP to do. Thank you for reading and helping, I'm sorry bad English :rtfm:
Issue with 5165 source
01/06/2011 - CO2 Private Server - 1 Replies
When I try to build I get an error here "NewItem.CPsWorth = Convert.ToUInt32(data);" in Database.cs. I don't know exactly what it means. This is what I get when I open the exception helper, it doesn't help me. The stuff above gets me thinking something is wrong like..an extra 0 or letter that does not belong in Items.txt but i didnt find any abnormailities there. And Ive tried other ones from fresh sources that give me the same problem. This server has a bunch of stuff added client...
[HELP]Monster Drop
09/15/2009 - Dekaron Private Server - 6 Replies
well guyz ... i got some new mobs and new maps. .. but they dont drop anything . i know how to make them drop dils . on monster.csv . but how to make them drop items ? i open monster.csv . and go to ItemSetIndex and i put my item index number . and then i go to ItemDropRatio ..... and i put 500 . ( no idea what's that i just put 500 or some times i put more high ) but when i go in game i dont get anything drops ...
[Help]Monster Drop
08/14/2009 - Dekaron Private Server - 4 Replies
in the monster drop i see ItemSetIndex ItemSetDropRatio and from akris fall copper agrate and silver agrate copper agrate ID=9910 silver agrate ID=9911 so in the akris line i dont see this IDs i see other id
Can Anyone Help me to increase the money drop and CPs drop for CoV2 source??
05/06/2009 - CO2 Private Server - 9 Replies
Firstly i would like to thanks CoV2 and ahmedandkhalid for the source if it happen you all read.But now I do have 1 problem. How can I increase the gold drop rate and the Cpsbag amount drop????



All times are GMT +1. The time now is 04:14.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.