[HELP] Attribute points

12/01/2008 21:04 hepan#1
HI.

I need a little help, i'm having problem with attribute points on my server.
I don't know how to let the server save ur attribute points?

if anyone know how please post in here!

Thank you for help
12/01/2008 22:56 damianpesta#2
Im sure your using LOTF source... Easy way ... Go to your database and check if the reborn charr got any atribute points in the StatP table ... If it Dont Means Its not saving ... If it Does Means Its not getting Info of That Table so you gonna have to add One line in database.cs Exacly under GetCharInfo ...it will be something like dat

Charr.StatP = Convert.ToUInt16((uint)DR["StatPoints"]);

Happy now?
12/02/2008 18:04 sherwin9#3
Damian, they don't like you loool, they don't even answer you :)

Just joking... Guess you know it :P

Ciao!
12/02/2008 19:49 damianpesta#4
Ow I Though that i solved hes problem :] dats why he is not answering lol
12/02/2008 20:24 _Emme_#5
Nope,thats the way to SAVE the attri / stat points, but, lotf problem is that it RESET the stat points , e.g if you are reborn, they will auto set as if you were non reborned. Easy fix with just an

if (Charr.RBCount == 0)


Find it yourself,shouldnt be too hard,a hint is the level up section.
12/02/2008 20:31 damianpesta#6
Quote:
Originally Posted by EmmeTheCoder View Post
Nope,thats the way to SAVE the attri / stat points, but, lotf problem is that it RESET the stat points , e.g if you are reborn, they will auto set as if you were non reborned. Easy fix with just an

if (Charr.RBCount == 0)


Find it yourself,shouldnt be too hard,a hint is the level up section.
Well the Problem i had was the one i posted up there ... it just wasnt getting StatPoints lol thats all
12/03/2008 13:14 hepan#7
thank you guys for the help! its working!
12/03/2008 23:12 elragal_30#8
Quote:
Originally Posted by hepan View Post
thank you guys for the help! its working!
and after u get new level is it save ur points and add to them or it reset it ?? i talk about attribute& other (str/agi/vit/spi). because i think every level it give points from the states saved
and @Emme yes it is the part that make that when leveling it save not add ;) hint
03/30/2009 13:08 ferone#9
hmm

Any1 help whit this ?


[Only registered and activated users can see links. Click Here To Register...]
03/31/2009 03:02 ferone#10
sorry for double post, but any1 help ?

I need fix this, but idk how to fix.....

Help plz....

THanks
04/02/2009 17:51 elragal_30#11
lol it seems that you are not know about Simple Coding or your like sleeper
how u can use variable (for examble) before you declare it
Solution :Simpley
this line that have error (Char.Statp= .....) select all line and Right Click and cut then put it after Line:
Quote:
DataRow DR = DSet.Tables["Character"].Rows[0];
easy
04/02/2009 18:15 alexbigfoot#12
@ferone - move the line {Charr.StatP = Convert.ToUInt16((uint)DR["StatPoints"]);}
after this line {DataRow DR = DSet.Tables["Character"].Rows[0];}

@LOTF bug -
Actualy there are 2 things about the stats ... 1. how damianpesta said, its not loading the stats from database
and 2. how emme said it is getting for any kind of rb so u should use "if (Charr.RBCount == 0)"
04/03/2009 13:07 ferone#13
So Thanks for the help

Plus Attribute points, all return, it would be as if I had not distributed them

I'm using Cov2 Source

this happens, if the character dies or if he log ...

could you help me?



[Only registered and activated users can see links. Click Here To Register...]
04/03/2009 13:43 PeTe Ninja#14
dude cov2 source is awful coding...xmasterrr told me himself that he didnt make nor that he do anything.
04/03/2009 17:55 ferone#15
Interesting:)

Then suppose that there is no way to fix this error?

So what do you recommend ...? depart from that source?

Thanks