yagokurt 84 Posted July 18, 2014 Share Posted July 18, 2014 Hi, i'm having 2 problems with the source (mainline) 1: When i use "Dash" from warrior or mount a hourse i lose HP 2: When i teleport with higher hp than 32k my hp just become negative (alrdy tryed something i saw on the forum but all hair stop work on game O.O) Link to comment Share on other sites More sharing options...
Ken 904 Posted July 19, 2014 Share Posted July 19, 2014 You are change with 2 methods. 1.Change in char.cpp ; Open char.cpp and search CHARACTER::SetPlayerProto after search these ; SetHP(t->hp); SetSP(t->sp); Change with this ; SetHP(GetMaxHP()); SetSP(GetMaxSP()); 2. You are change in tables.h as terenzo said; Open tables.h and search SPlayerTable after search this ; short hp; short sp; Change with this ; int hp; int sp; Best Regards Ellie 1 1 1 3 Do not be sorry, be better. Link to comment Share on other sites More sharing options...
yagokurt 84 Posted July 19, 2014 Author Share Posted July 19, 2014 Thanks Terenzo. and Ellie™, it work for the negative hp after teleport. Now i just need to fix the bug who decrease hp after use "Dash" and mount a horse. In a test i add 50.000 hp in affect and use dash and i only lose this 50.000 nothing more. Link to comment Share on other sites More sharing options...
Darknetto 25 Posted July 19, 2014 Share Posted July 19, 2014 Thanks Terenzo. and Ellie™, it work for the negative hp after teleport. Now i just need to fix the bug who decrease hp after use "Dash" and mount a horse. In a test i add 50.000 hp in affect and use dash and i only lose this 50.000 nothing more. hi.. is simple..for fix hp.... i've don't changed any more and work .. change only.. in tables.h : path /common ******* short hp; short mp; replace with: long hp; short mp; i think later you need compile db <.< that's all Link to comment Share on other sites More sharing options...
Ken 904 Posted July 20, 2014 Share Posted July 20, 2014 Thanks Terenzo. and Ellie™, it work for the negative hp after teleport. Now i just need to fix the bug who decrease hp after use "Dash" and mount a horse. In a test i add 50.000 hp in affect and use dash and i only lose this 50.000 nothing more. hi.. is simple..for fix hp.... i've don't changed any more and work .. change only.. in tables.h : path /common ******* short hp; short mp; replace with: long hp; short mp; i think later you need compile db <.< that's all You don't need to put "long" already int is enough for this ; http://msdn.microsoft.com/en-us/library/296az74e.aspx INT_MAX : 2147483647 Best Regards Ellie Do not be sorry, be better. Link to comment Share on other sites More sharing options...
yagokurt 84 Posted July 20, 2014 Author Share Posted July 20, 2014 The negative HP is alrdy fixed. Now i just need fix the "Dash" because it reload the AFFECT when i use it. Link to comment Share on other sites More sharing options...
yagokurt 84 Posted July 21, 2014 Author Share Posted July 21, 2014 You are change with 2 methods. 1.Change in char.cpp ; Open char.cpp and search CHARACTER::SetPlayerProto after search these ; SetHP(t->hp); SetSP(t->sp); Change with this ; SetHP(GetMaxHP()); SetSP(GetMaxSP()); 2. You are change in tables.h as terenzo said; Open tables.h and search SPlayerTable after search this ; short hp; short sp; Change with this ; int hp; int sp; Best Regards Ellie Ellie something happen after apply it. On characther selection i didnt see any armor or hair. But when i'm ingame i saw then normal and when loggout i saw with the default armor and default hair. Do u have any idea about it? I'm using mainline server / novaline client. Link to comment Share on other sites More sharing options...
Denis 1474 Posted July 21, 2014 Share Posted July 21, 2014 What method did you use?If you use the second one you need to recompile db/game 2 Link to comment Share on other sites More sharing options...
yagokurt 84 Posted July 21, 2014 Author Share Posted July 21, 2014 What method did you use?If you use the second one you need to recompile db/game I did both Denic, and i didnt recompile DB maybe is it. I will try it, thanks. --- EDIT--- Its done denic, was bcuz of i didnt compile DB. Thanks 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now