Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] Dropping Quest Item

Discussion on [Help] Dropping Quest Item within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Zkiller110's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 276
Received Thanks: 99
[Help] Dropping Quest Item

i added that code for a quest and i get the following error can someone tell me how to get rid of the error?

Code:
                    if (MobID == 1 && Char.DefenderofTwinCity == 1 != Char.InventoryContains(1075000, 1))
                    {
                        if (MyMath.ChanceSuccess(5))
                        {
                            DI2.Info.ID = 1075000;
                            DI2.Info.MaxDur = DI2.Info.DBInfo.Durability;
                            DI2.Info.CurDur = DI2.Info.MaxDur;
                        }
                    }
System.NullReferenceException: Object reference not set to an instance of an obj
ect.
at NewestCOServer.Game.Mob.DropAnItem(UInt32 Owner, Byte OwnerLevel) in C:\51
65\5165 Source\Game\Mob.cs:line 542
Zkiller110 is offline  
Old 01/22/2011, 18:56   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
if (Mob != null)
Arcо is offline  
Old 01/22/2011, 20:17   #3
 
elite*gold: 0
Join Date: Jun 2009
Posts: 787
Received Thanks: 314
'Char' is null probably.
_tao4229_ is offline  
Reply


Similar Threads Similar Threads
Proxy Help: Dropping an Item
08/16/2010 - CO2 Programming - 23 Replies
Alright, so i have decided to mess around with a proxy and try to make myself an autominer. I have gotten as far as to dropping the items. I am not sure what the problem with it is, weather its the packet structure or the Item ids itself. EDIT: Totally forgot to mention its for a 5065 binary server. This is in my PacketHandler, everytime i pick something up, or mine an ore i Add the item to a dictionary, then i check to see if There are more than 19 items, if their are i call my drop...
[Release] Item dropping (for events/gm command)
01/16/2010 - CO2 PServer Guides & Releases - 10 Replies
So I was bored and figured I might finish my random event code for 1.0 and in the process realized just how much better alot of what I had could be written so I'm in the process of re-writing it all to use voids, switch and all that good stuff. During that, for my random drop event I decided to write a little command/void to handle dropping items. This can be used however you wish. Maybe you want a gm command to drop x number of db's in twin city, a random event or anything else you want...
[SEARCH]GM Command for item dropping
08/16/2009 - Dekaron Private Server - 11 Replies
I have an own Dekaron private Server(Only4Fun) and a few questions What is the GM Command to drop an item i chosed? If i type /GM callmonster 101 (Spider larva) the there is no monster spawning. Why? Pls help me Greets Ghosthunter PS: I have a List with the commands but the most one are not working. I type them and then nothing happens
editing item file for msg at dropping items
07/12/2006 - Conquer Online 2 - 7 Replies
Hi, i read about a programm that edits the item dat which changes their priority so it gives you a message , if you wanna drop it (just like meteors have). i tried to search for that thread but wanst able to find it :/



All times are GMT +1. The time now is 21:00.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.