Register for your free account! | Forgot your password?

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

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

Advertisement



[Help] i cant wield a weapon i made

Discussion on [Help] i cant wield a weapon i made within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
[Help] i cant wield a weapon i made

ok so i made a weapon a swrod with katana looks :P but when i put it on the console says this :
Code:
System.NullReferenceExeption: Object reference not set to an instance of an object. at COServer_Project.Character.GetEquipStat<Byte pos, boolean UnEquip>in C:/Program Files/sources/LOTF Based Source/COserverProject/Character.cs:line 4830
at COserver_Project.Client.GetPacket<Byte [] data> in C:/Program Files/sources/LOTF Base Source/COserverProject/CLient.cs:line 10763
System.NullRefrenceException: Object Refrence Not set to an instance of an object.
see the attachments below it will show the wielding problem.

can someone help me???:???:
Attached Images
File Type: jpg 2654154.jpg (295.2 KB, 26 views)
File Type: jpg 2643043.jpg (296.9 KB, 24 views)
ph03nixx is offline  
Old 02/06/2009, 23:37   #2
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
I think its not telling server pos for The new Equipment?... Maybe im wrong.
damianpesta is offline  
Old 02/06/2009, 23:41   #3
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
What does line 10763 Contain?... By the looks of it its trying to load the items stats from your database but it cant find it.
© Haydz is offline  
Old 02/06/2009, 23:43   #4
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
wait ill post the screenie of the console


Thts the error
ph03nixx is offline  
Old 02/06/2009, 23:47   #5
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Probably Stats as hans said.It clearly states That its unable to Get the byte to Position ( Space that waepon goes int0) so the problem is in Stats or Database.Check it all over again.
damianpesta is offline  
Old 02/06/2009, 23:51   #6
 
© Haydz's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
Yeah its failing to load the items stats from the DB... Or in simpler terms, you need to add the items stats.
© Haydz is offline  
Old 02/06/2009, 23:52   #7
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
well in Client.cs line 10763 it says this: if (MyChar.ItemsInInventory < 40)
Character.cs line 4830 says : GetEquipStats(ToPos, false);
should i change GetEquipStats(ToPos, false); into GetEquipStats(ToPos, true);

??
ph03nixx is offline  
Old 02/06/2009, 23:53   #8
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
Quote:
Originally Posted by © Haydz View Post
Yeah its failing to load the items stats from the DB... Or in simpler terms, you need to add the items stats.
oh i forgot that.... where are the item stats again:P i forgot
ph03nixx is offline  
Old 02/06/2009, 23:53   #9
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by ph03nixx View Post
well in Client.cs line 10763 it says this: if (MyChar.ItemsInInventory < 40)
Character.cs line 4830 says : GetEquipStats(ToPos, false);
should i change GetEquipStats(ToPos, false); into GetEquipStats(ToPos, true);

??
you should make sure that You got Item in database, with right stats and Prop's.And check all over again.The error is on item stats.

Edit , they are in Database.
damianpesta is offline  
Old 02/06/2009, 23:54   #10
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
databse.cs or external database?
ph03nixx is offline  
Old 02/06/2009, 23:58   #11
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by ph03nixx View Post
databse.cs or external database?
sql database....
damianpesta is offline  
Old 02/07/2009, 00:04   #12
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
k, well i got it and there is notihing wrong i only got how much i can sell it for at armorer and how much CPS it worth and the ID and name, so whats wrong?
ph03nixx is offline  
Old 02/07/2009, 00:36   #13
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by ph03nixx View Post
k, well i got it and there is notihing wrong i only got how much i can sell it for at armorer and how much CPS it worth and the ID and name, so whats wrong?
Does Stat required? ... And stuff Level required... and others fill em In and shud work.
damianpesta is offline  
Old 02/07/2009, 00:46   #14
 
elite*gold: 0
Join Date: Jun 2008
Posts: 384
Received Thanks: 18
i use navicat but here this is what it looks like with me:
ph03nixx is offline  
Old 02/07/2009, 00:49   #15
 
elite*gold: 0
Join Date: Jan 2009
Posts: 145
Received Thanks: 4
Quote:
Originally Posted by ph03nixx View Post
k, well i got it and there is notihing wrong i only got how much i can sell it for at armorer and how much CPS it worth and the ID and name, so whats wrong?



Field Type Collation Attributes Null Default Extra Action
ItemID int(10) UNSIGNED No auto_increment
ItemName varchar(45) latin1_swedish_ci No
ClassReq int(16) UNSIGNED No
ProfReq int(16) UNSIGNED No
LvlReq int(16) UNSIGNED No
SexReq int(16) UNSIGNED No
StrReq int(16) UNSIGNED No
AgiReq int(16) UNSIGNED No
Worth int(16) UNSIGNED No
MinAtk int(16) UNSIGNED No
MaxAtk int(16) UNSIGNED No
Defense int(16) UNSIGNED Yes NULL
MDef int(16) UNSIGNED No
MAttack int(16) UNSIGNED No
Dodge int(16) UNSIGNED No
AgiGive int(16) UNSIGNED No
CPsWorth int(16) UNSIGNED No

if you use phpmyadmin, this is what it should look similiar to..
just browse all the files and insert a new one at the end of all the items.
make sure they correspond to your newly created item (wepID, etc.)
TasteofChaos is offline  
Reply


Similar Threads Similar Threads
show us your best + on weapon you ever made
06/17/2010 - Silkroad Online - 31 Replies
http://img203.imageshack.us/img203/5671/sro2009110 108140599.jpg This one was today I couldnt beleave,but i made :D http://img203.imageshack.us/img203/4681/sro2009110 108164964.jpg but this +8 was not my first one :D http://img203.imageshack.us/img203/8530/11106059.j pg that sword when i buy was only +6. I hope to see more and better + than mines :)
BIG TIME BUG!!!! A FRIEND MADE IT AND MADE A NICE TUT!
03/01/2010 - SRO Private Server - 27 Replies
--



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


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