Likes: 0
Results 1 to 10 of 26
-
19-08-10, 12:44 AM #1
Need help with C++ changing stamina health bonus, PLS look
Register to remove this adHello again, I need some help... Ok, so I want to make the health bonus from stamina more than just 10hp/STA point I was looking through the scripts in my source and found the C++ file called statsystem.cpp and in it i found the code
Code:float Player::GetHealthBonusFromStamina() { float stamina = GetStat(STAT_STAMINA); float baseStam = stamina < 20 ? stamina : 20; float moreStam = stamina - baseStam; return baseStam + (moreStam*10.0f);
Code:float Player::GetHealthBonusFromStamina() { float stamina = GetStat(STAT_STAMINA); float baseStam = stamina < 20 ? stamina : 20; float moreStam = stamina - baseStam; return baseStam + (moreStam*500.0f);
Also, is there any kind of SQL file i could make to change all of the items at once to have like x20 STA and stuff pls let me know
Thanks again,
Kandi
› See More: Need help with C++ changing stamina health bonus, PLS lookLast edited by kandi; 19-08-10 at 12:55 AM. Reason: spelling error
-
19-08-10, 08:32 AM #2
I believe the "moreStam*500.0f);" is the correct section.
However, I'm NOT sure if there is a way to change EVERY item to have 20x more stamina than it has, this would probably need to be an Update MySQL with all the items you want changed (which will be used in your server) rather than all the pointless ones that nobody ever needs nor wants.
Have a look through all the items you'll be using, and try to update them with a SQL file (You may need to make it yourself, however if your having difficulties I'll help)..
-
19-08-10, 01:14 PM #3
Sorry, lol no way i am letting anyone else go through changine every item that I will be using haha, its gonna suck. But I just tested changing the bonuses in the source and it works beautifully so I will just stick with that rather than trying to change all the files in my items table. Thanks for the help...again
Kandi ;D
-
19-08-10, 01:48 PM #4
No problem Have fun :P
-
19-08-10, 07:15 PM #5
OK, so I have changed the attack power, stamina and all that sort of stuff. I now need to change the spell power but the values are all wierd and have like ++i and stuff instead of the 0.00f like in the other one, if someone can help with this i would be happy and ill you if i haven't already lol
<3 Kandi
-
19-08-10, 09:58 PM #6
Can you please copy the code you want to change (that being the SP stat) and paste it into a reply.
Makes it easier for us to help
-
19-08-10, 11:16 PM #7
OK, well I beleive this is the code
Code:void Player::ApplySpellPowerBonus(int32 amount, bool apply) { m_baseSpellPower+=apply?amount:-amount; // For speed just update for client ApplyModUInt32Value(PLAYER_FIELD_MOD_HEALING_DONE_POS, amount, apply); for(int i = SPELL_SCHOOL_HOLY; i < MAX_SPELL_SCHOOL; ++i) ApplyModUInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+i, amount, apply);; } void Player::UpdateSpellDamageAndHealingBonus() { // Magic damage modifiers implemented in Unit::SpellDamageBonusDone // This information for client side use only // Get healing bonus for all schools SetStatInt32Value(PLAYER_FIELD_MOD_HEALING_DONE_POS, SpellBaseHealingBonusDone(SPELL_SCHOOL_MASK_ALL)); // Get damage bonus for all schools for(int i = SPELL_SCHOOL_HOLY; i < MAX_SPELL_SCHOOL; ++i) SetStatInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+i, SpellBaseDamageBonusDone(SpellSchoolMask(1 << i))); }
Kandi ;D
-
20-08-10, 12:17 AM #8
I'd recommend changing the spell power in the config befor chaning in the core.
Just got my pc back
-
20-08-10, 07:27 AM #9Originally Posted by Core
I believe you would edit that line. Could possibly be the "1" that you'd need to change, but I'm not sure. If you dont want to risk it, leave it as it is.
-
20-08-10, 12:09 PM #10
Register to remove this adOK, well i have decided to just change all of the items because i have found that it is fun and relaxing....hahaha, maybe thats why i wanna shoot myself? lol anyways all I had for now was 1 more question is there a way to make an sql file that would change all items in my database to BoE?
P.S. I use Mangos
Kandi;D
Oh and as for changing the core...NO MORE until i learn more haha something went seriously wrong and now its un fixable lolLast edited by kandi; 20-08-10 at 12:13 PM.