Dodge Modification menu

User Tag List

Results 1 to 11 of 11
  1. #1
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dodge Modification

    Is it possible to somehow lower the dodge conversion from AGI to dodge? i am using arc emu and looked in Unit.h and Unit.cpp as i found a post here saying that but couldnt find anything to alter.

    The problem im having here is most rogues and hunters on the server can max out to 95% dodge easy.. and it gets to the point where even the raid bosses cannot melee them as they dodge everything.

    So i either need to find a way to raise the bosses Chance to hit them ( which i think would be the better option )

    Or find a way to globally reduce dodge from Agility or to lower dodge period.

    I can see in player.cpp and player.h that there are values that can be modded to change a classes base and by level dodge but that isnt really what im looking for.

    Thanks in advance

    Dodge Modification
  2. #2
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    float Player::GetDodgeChance()
    {
    	uint32 pClass = (uint32)getClass();
    	float chance;
    
    	// Base dodge chance
    	chance = baseDodge[pClass];
    
    	// Dodge from agility
    	chance += float( GetUInt32Value( UNIT_FIELD_STAT1 ) / dodgeRatio[getLevel()-1][pClass] );
    
    	// Dodge from dodge rating
    	chance += CalcRating( PLAYER_RATING_MODIFIER_DODGE );
    
    	// Dodge from spells
    	chance += GetDodgeFromSpell();
    
    	return max( chance, 0.0f ); // Make sure we don't have a negative chance
    }
    That's in Player.cpp

    You can probably play around with that code and modify it to your servers needs.

    Edit:

    You seem to be more fond of modifying the players dodge chance vs creatures, so look below.
    Code:
    			if(pVictim->m_stunned<= 0)
    				{
    					// can dodge as long as we're not stunned
    					dodge = plr->GetDodgeChance();
    				}
    Thats in Unit::Strike(blah, blah)

    you could modify that line of code and give it a cap?

    Add this below dodge = plr->GetDodgeChance();
    if(dodge > 30)
    dodge = 30;

    It's 3:30 and i probably read the code wrong yet again, but hopefully it will still point you in the right direction/general area.

    Night.
    Last edited by Vision1000; 11-21-2009 at 05:57 AM.

  3. #3
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Another way you can do it (Much simpler for this) is to edit the Global Dodge Cap for all people.

    Go into player.cpp, and search for dodge until you find a line containing "95.0f", edit that to the cap you want.

    Then search into player.h, and find the variables, and change them so it is a reasonable amount.

    Good luck!

  4. #4
    BurnIt420!'s Avatar Private
    Reputation
    1
    Join Date
    Nov 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how can i get to player.cpp? sorry im kind of new.

  5. #5
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to have the core downloaded, but not compiled, then you need to open the project file, and list all the files under world, and then you will be able to see it.

  6. #6
    BurnIt420!'s Avatar Private
    Reputation
    1
    Join Date
    Nov 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Kiev View Post
    You need to have the core downloaded, but not compiled, then you need to open the project file, and list all the files under world, and then you will be able to see it.
    how can i download the core? like i said im new, and do i need a specific program to open it? i have SVN and C++

  7. #7
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to get the arcemu SVN - There are many guides under the guides forum, telling you how to do it. Good luck!

  8. #8
    BurnIt420!'s Avatar Private
    Reputation
    1
    Join Date
    Nov 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Kiev View Post
    You need to get the arcemu SVN - There are many guides under the guides forum, telling you how to do it. Good luck!
    Mind giving me a link? i searched but didnt find anything, thanks in advance

  9. #9
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Two seconds.

    Code:
    svn://arcemu.info/svn/
    Thats it i think.

  10. #10
    BurnIt420!'s Avatar Private
    Reputation
    1
    Join Date
    Nov 2009
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh alright. i tryed modifying dodge rates in player.cpp and it isnt updating it on my server. is it because im using a repack?

  11. #11
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to compile the core in that yourself, there are many guides in the guides forum for that. Enjoy!

Similar Threads

  1. item SET modifications
    By weaselking1973 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 11-05-2007, 02:07 PM
  2. [MODIFICATION] AC repack WITH display ID integrated
    By Fridgecritter in forum WoW EMU Programs
    Replies: 5
    Last Post: 10-14-2007, 02:11 PM
  3. Possible Dodge Glitch/Hack
    By krazy12766 in forum World of Warcraft General
    Replies: 18
    Last Post: 04-04-2007, 05:55 AM
  4. Rogue BC: ~90% Dodge for 10 seconds
    By da_bizkit in forum World of Warcraft Exploits
    Replies: 14
    Last Post: 03-09-2007, 12:44 PM
  5. Awards Modification Added
    By Matt in forum Suggestions
    Replies: 17
    Last Post: 09-21-2006, 07:57 PM
All times are GMT -5. The time now is 03:46 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search