[Help] Loading items (Database.cs line 1210)

07/09/2009 00:22 raidenx123#1
Ok this happened after not even touching Database.cs but adding a new health pot.

But whenever i start the gameserver up (LOTF) it now says "Specified Cast is not valid" and then says "Database.cs:line 1210"

And what is on that line:
Code:
else if (Level == 89)//Line 1209
      return 31033236;//Line 1210

Anyhelp plz?
07/09/2009 00:37 ~Yuki~#2
else if (Level == 89)//Line 1209
return 31033236;//Line 1210

Hmm i bet "return 31033236;" is a too high value look on above! and C&P

Would help if u post the whole void
07/09/2009 00:37 TasteofChaos#3
Specified Cast, i believe it refers to the number. Not positive, but look into it there. Maybe there's a different error in that .cs file.
07/09/2009 00:39 raidenx123#4
Well probably i never touched b4 but all i did source sided was add the item to Item db, add it to Character.cs and ItemsNameTold.ini
07/09/2009 00:47 TasteofChaos#5
make sure the items stats are also in itemadd.ini.

wait, you inserted a health pot that was missing? what health pot?
07/09/2009 01:05 raidenx123#6
No it wasnt a missing health pot, but i didnt do anything with itemadd.ini

It is a PopTart :)

EDIT - I cant spawn item with /item command and when I put in shop it doesnt load because it cannot create the item.
07/09/2009 01:11 ~Yuki~#7
hmmm custom item?
07/09/2009 01:18 raidenx123#8
Yeah im adding it for rich pplz it cost like 5000cps for 5 poptarts which heal 20k
07/09/2009 02:26 PeTe Ninja#9
remove it and it will be fixed..fix the bugs first >< and your server using what source? the newly released one from that guy becasue it looks like your signature says exactly from that was released and if you saw before someone who released it said it was horribly coding and he might of been right.. PM me i got someone who can help you fix it. Especially if its those bugs
07/09/2009 04:34 raidenx123#10
I fixed most of bugs in source but it worked fine before. But it hates my blueberry poptarts :(