Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 17:09

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



How do i increase the Monster HP beyond 2b?

Discussion on How do i increase the Monster HP beyond 2b? within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
jeromerz's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 244
Received Thanks: 12
How do i increase the Monster HP beyond 2b?

Hello everyone,

i wanted to know how to increase the monster life beyond 2,147,483,647 like double it. i managed to look it up on the source:

Code:
	DWORD	dwAddHp;		
	DWORD	dwAddMp;
if i change DWORD to UINT or Unsigned Long it would make the max hp like 4,294,967,295 is this correct?

i wonder if im doing it right.

Thanks in advance
jeromerz is offline  
Old 05/11/2016, 03:22   #2

 
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
MoverParam.cpp

Change
Code:
return int( pMoverProp->dwAddHp * prj.m_fMonsterHitpointRate * pMoverProp->m_fHitPoint_Rate );
to
Code:
return uint( pMoverProp->dwAddHp * prj.m_fMonsterHitpointRate * pMoverProp->m_fHitPoint_Rate );
ProjectCmn.h

Change
Code:
DWORD	dwAddHp;
to
Code:
UINT	dwAddHp;
ZeroTwo02 is offline  
Thanks
1 User
Old 05/11/2016, 05:15   #3
 
jeromerz's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 244
Received Thanks: 12
Quote:
Originally Posted by naruto66620 View Post
MoverParam.cpp

Change
Code:
return int( pMoverProp->dwAddHp * prj.m_fMonsterHitpointRate * pMoverProp->m_fHitPoint_Rate );
to
Code:
return uint( pMoverProp->dwAddHp * prj.m_fMonsterHitpointRate * pMoverProp->m_fHitPoint_Rate );
ProjectCmn.h

Change
Code:
DWORD	dwAddHp;
to
Code:
UINT	dwAddHp;
Done that but when i see the monster ingame the HP is 1/1 only :/

jeromerz is offline  
Old 05/11/2016, 08:33   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 665
Received Thanks: 227
Quote:
Originally Posted by naruto66620 View Post
MoverParam.cpp

Change
Code:
return int( pMoverProp->dwAddHp * prj.m_fMonsterHitpointRate * pMoverProp->m_fHitPoint_Rate );
to
Code:
return uint( pMoverProp->dwAddHp * prj.m_fMonsterHitpointRate * pMoverProp->m_fHitPoint_Rate );
ProjectCmn.h

Change
Code:
DWORD	dwAddHp;
to
Code:
UINT	dwAddHp;
Unsigned int is still 32bits, you need to change to __int64
alfredico is offline  
Thanks
1 User
Old 05/11/2016, 08:37   #5
 
Mognakor's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
First of all:

Ask yourself if you really need mob Hp beyond 2.14b. You've probably ****** up in your design somewhere in the process.

Second:

If you've bothered to search your sourcecode or even google you'd have found out that DWORD is defined as unsigned long so it's already 32 bits. Which means you have 4.28b as maximum value.

This may be limited by casts etc. in other functions and thus you have the same issue as mentionend in:

Third:

Changing it too even more would mean using a 64bit variable (for example DWORD64). But thats alot more work than just changing the type of 1 variable.
Mognakor is offline  
Thanks
5 Users
Old 05/11/2016, 09:18   #6
 
jeromerz's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 244
Received Thanks: 12
Quote:
Originally Posted by Mognakor View Post
First of all:

Ask yourself if you really need mob Hp beyond 2.14b. You've probably ****** up in your design somewhere in the process.

Second:

If you've bothered to search your sourcecode or even google you'd have found out that DWORD is defined as unsigned long so it's already 32 bits. Which means you have 4.28b as maximum value.

This may be limited by casts etc. in other functions and thus you have the same issue as mentionend in:

Third:

Changing it too even more would mean using a 64bit variable (for example DWORD64). But thats alot more work than just changing the type of 1 variable.
Thanks already searched it on google but the value given DWORD has a 2.1b max value. And unsigned int is 4.2b i just tried it making the hp of monster beyond 2.1b for some personal purposes

Ill try __int64 as sir alfredico suggested.

Thanks for your replies.
jeromerz is offline  
Old 05/11/2016, 12:46   #7
 
jeromerz's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 244
Received Thanks: 12
Quote:
Originally Posted by Avalion View Post
Dword is unsigned long which is 32bit unsigned integer on x86 compiles. Aka unsigned int size. To increase hp you'll need to check the casts and change instances of the variables used to _Int64. Casts and other things probably check to see if the monster or player actually dies and goes below that hp threshold

Also why not trying to balance your server without requiring a monster with that much hp. Lower hp fields and damage outputs. You don't really need to increase the storage type.

Sent from my SGH-I337M using Tapatalk
Thank you sir i was just trying that i wonder what are the other functions on propmover.txt like purpose of abrasion, hardness and etc.
jeromerz is offline  
Old 05/11/2016, 13:11   #8
 
Mognakor's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 598
Received Thanks: 465
Quote:
Originally Posted by jeromerz View Post
Thank you sir i was just trying that i wonder what are the other functions on propmover.txt like purpose of abrasion, hardness and etc.
Flyff is full of attributes that don't do anything.

Maybe the biggest example is items being skills and viceversa (they use the same struct to be stored).

IIRC skills use 1/3 or less of item attributes. And even though propSkill and prop/SpecItem are loaded via 2 different function, propSkill has 2/3 unused columns and 1/3 used ones.


P.S:

You can use those columns to implement lots of new features without adding new columns to your resource files.
Mognakor is offline  
Thanks
1 User
Old 05/11/2016, 14:00   #9
 
jeromerz's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 244
Received Thanks: 12
Quote:
Originally Posted by Mognakor View Post
Flyff is full of attributes that don't do anything.

Maybe the biggest example is items being skills and viceversa (they use the same struct to be stored).

IIRC skills use 1/3 or less of item attributes. And even though propSkill and prop/SpecItem are loaded via 2 different function, propSkill has 2/3 unused columns and 1/3 used ones.


P.S:

You can use those columns to implement lots of new features without adding new columns to your resource files.
Ok sir thank you for all your tips and guide
jeromerz is offline  
Reply


Similar Threads Similar Threads
[HELP] increase monster level???
12/20/2012 - Shaiya Private Server - 6 Replies
Hello Elitepvpers, i have a question, i have a level cap of 60, but i got a question about the Monsters, like how can i increase there level to gain more exp cuz i want to do level 70 i got the armors etc... but i want to increase the monsters level to gain more exp so players can go on a higher level for if I do go to level 60 i know how to do level 70 but the monsters level i dont know how if that is even possible, thanks and i hve used the search but couldent find a solution. :)
increase monster
04/22/2012 - SRO Private Server - 3 Replies
hello jupiter add and mobs there are very few how to increase monster drop ?
IS THER A HACK THAT CAN INCREASE THE NUM OF MONSTER IN DUNGEON?
08/10/2009 - Grand Chase Philippines - 17 Replies
as the tittle said!



All times are GMT +2. The time now is 17:09.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.