Jump to content

Hp recovery with potions


Recommended Posts

How to remove max hp bonus:

char_item.cpp in \game\src

Search:
 

case ITEM_AUTO_SP_RECOVERY_X:
											isSpecialPotion = true;

set it to false or scroll down and search:
 

if (true == isSpecialPotion)
										{
											if (type == AFFECT_AUTO_HP_RECOVERY)
											{
												bonus = POINT_MAX_HP_PCT;
											}
											else if (type == AFFECT_AUTO_SP_RECOVERY)
											{
												bonus = POINT_MAX_SP_PCT;
											}
										}

delete/comment

Also, your fast health recovery bug is in the same file (char_item.cpp) - or db item_proto values
Search:
 

PointChange

+

POINT_HP

Good luck! :wub:
 

  • Love 1

I completely abandoned working on the files for this game. I do not respond to private messages.

.png

Link to comment
Share on other sites

  • Contributor
1 hour ago, Nirray said:

How to remove max hp bonus:

char_item.cpp in \game\src

Search:
 


case ITEM_AUTO_SP_RECOVERY_X:
											isSpecialPotion = true;

set it to false or scroll down and search:
 


if (true == isSpecialPotion)
										{
											if (type == AFFECT_AUTO_HP_RECOVERY)
											{
												bonus = POINT_MAX_HP_PCT;
											}
											else if (type == AFFECT_AUTO_SP_RECOVERY)
											{
												bonus = POINT_MAX_SP_PCT;
											}
										}

delete/comment

Also, your fast health recovery bug is in the same file (char_item.cpp) - or db item_proto values
Search:
 


PointChange

+


POINT_HP

Good luck! :wub:
 

I did understand your first part of turning true to false

but why delete that function (exist twice)

And for this part:Also, your fast health recovery bug is in the same file (char_item.cpp) - or db item_proto values

When search i do what ?

And thank you very much for responding:wub:

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.
266868740522639360.png

Link to comment
Share on other sites

58 minutes ago, MrQuin said:

I did understand your first part of turning true to false

but why delete that function (exist twice)

And for this part:Also, your fast health recovery bug is in the same file (char_item.cpp) - or db item_proto values

When search i do what ?

And thank you very much for responding:wub:

I said "or" (there's no need to delete it if you already set true to false but I've also told you where the max health bonus occurs in the source code).
For the second part I meant something like "do it yourself" but nevermind.
Post here your char_item.cpp in code tag and item_proto lines of those vnums from DB:
 

	ITEM_AUTO_HP_RECOVERY_S	=	72723,
	ITEM_AUTO_HP_RECOVERY_M	=	72724,
	ITEM_AUTO_HP_RECOVERY_L	=	72725,
	ITEM_AUTO_HP_RECOVERY_X	=	72726,

	ITEM_AUTO_SP_RECOVERY_S	=	72727,
	ITEM_AUTO_SP_RECOVERY_M	=	72728,
	ITEM_AUTO_SP_RECOVERY_L	=	72729,
	ITEM_AUTO_SP_RECOVERY_X	=	72730,

then I could help you again :D

I completely abandoned working on the files for this game. I do not respond to private messages.

.png

Link to comment
Share on other sites

  • Contributor
14 minutes ago, Nirray said:

I said "or" (there's no need to delete it if you already set true to false but I've also told you where the max health bonus occurs in the source code).
For the second part I meant something like "do it yourself" but nevermind.
Post here your char_item.cpp in code tag and item_proto lines of those vnums from DB:
 


	ITEM_AUTO_HP_RECOVERY_S	=	72723,
	ITEM_AUTO_HP_RECOVERY_M	=	72724,
	ITEM_AUTO_HP_RECOVERY_L	=	72725,
	ITEM_AUTO_HP_RECOVERY_X	=	72726,

	ITEM_AUTO_SP_RECOVERY_S	=	72727,
	ITEM_AUTO_SP_RECOVERY_M	=	72728,
	ITEM_AUTO_SP_RECOVERY_L	=	72729,
	ITEM_AUTO_SP_RECOVERY_X	=	72730,

then I could help you again :D

I'll PM it to you ..

My only accounts are here and on M2D, Don't trust anyone else from other shitty sites.
266868740522639360.png

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.