Jump to content
  • 0

[SOURCE] HP decrease and negative


yagokurt

Question

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

8 answers to this question

Recommended Posts

  • 0

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

  • Love 3

Do not be sorry, be better.

Link to comment
  • 0

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
  • 0

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
  • 0

 

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
  • 0

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
  • 0

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 ;)

  • Love 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Activity

    1. 0

      Help with quest

    2. 0

      Will anyone modify the mount?Mounts need to be mounted to increase their stats.

    3. 11

      Lock Picking Skill + Missions

    4. 4

      Quest Deleter

    5. 1

      [SOLUTION IN TOPIC]Loading locale_game.txt raises KeyError

    6. 1

      Binary functions: "GetSlotLocalPosition" & "GetSlotGlobalPosition"

    7. 1

      Binary functions: "GetSlotLocalPosition" & "GetSlotGlobalPosition"

    8. 1

      [SOLUTION IN TOPIC]Loading locale_game.txt raises KeyError

    9. 6

      Skill Book Combination System

  • Recently Browsing

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.