Jump to content

[SOURCE] HP decrease and negative


Recommended Posts

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

  • Metin2 Dev 1
  • Not Good 1
  • Good 1
  • Love 3

Do not be sorry, be better.

Link to comment
Share on other sites

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

 

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.