5165 Items Problem!

06/23/2010 04:02 killersub#1
okay so when I made new items in my server and added dem in my database in Itmes.txt...when I f6 my server and f5 my server I get an exception sayin in Database.cs where its at
Code:
NewItem.DexGives = Convert.ToByte(data[17]);
it says:
Code:
Value was either too large or too small for an unsigned byte.
how can I make this byte larger to read all of da items? every help wuld b appreciated :)! thanks!
06/23/2010 05:00 Arcо#2
You recently added an item to your items.txt and the dexterity it gives is higher than 255, and since dexterity is defined as a byte the highest it can go is 255.
06/23/2010 05:16 killersub#3
Quote:
Originally Posted by .Arco View Post
You recently added an item to your items.txt and the dexterity it gives is higher than 255, and since dexterity is defined as a byte the highest it can go is 255.
so how can I fix dat so it can read more dan 255? its defined as ToByte cant I bypass dat or wat should I change in my items.txt XD? sorry been a long time since Im back coding...
06/23/2010 05:21 Arcо#4
Since this is something in the client, you can't bypass it.
06/23/2010 05:25 killersub#5
Quote:
Originally Posted by .Arco View Post
Since this is something in the client, you can't bypass it.
so What do u suggest for me to do?
06/23/2010 05:26 Arcо#6
To not let the dex go over 255? Lol.
06/23/2010 05:34 killersub#7
Quote:
Originally Posted by .Arco View Post
To not let the dex go over 255? Lol.
in Items.txt where can I find da dex lmfao(so I can change it)...soz Im a newb :).
06/23/2010 05:35 Arcо#8
Just looked for what you changed last.
06/23/2010 05:40 killersub#9
Quote:
Originally Posted by .Arco View Post
Just looked for what you changed last.
I mean like...what part can I find dexterity in...here's an example(if its not like dis please tell me lol...)

Code:
131123 Gurosu 25 0 190 0 0 0 0 0 0 0 100000000 0 0 0 2532 0 0 0 0 25000 25000 0 0 0 0 0 0 0 55 1 1000 0 0 0 0 AngelicArmor Wear~And~Belive
is it around dere or wut?
06/23/2010 05:43 Arcо#10
Go to 410339 and paste that here, I'd know the dex if it was a weapon.
06/23/2010 05:44 killersub#11
Quote:
Originally Posted by .Arco View Post
Go to 410339 and paste that here, I'd know the dex if it was a weapon.
alright bro here it is:

Code:
410339 [S]BuriedBlade 0 12 130 0 176 0 0 0 0 0 100000 0 3165 2476 0 28 0 0 0 7099 7099 0 0 0 0 0 0 0 0 1 1000 0 0 0 0 Blade None
06/23/2010 05:47 Arcо#12
28
thats it.
06/23/2010 05:51 killersub#13
Quote:
Originally Posted by .Arco View Post
28
thats it.
alright Ill look into it and thanks...it looks like most of em have 0 tho...gonna b hard lookin thru everythin :S
06/23/2010 05:53 Arcо#14
Only armors, headgear, att rings, and neckies give 0.
06/23/2010 05:56 killersub#15
Quote:
Originally Posted by .Arco View Post
Only armors, headgear, att rings, and neckies give 0.
so the prob is just wit weps and items right...hmmmm...