• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Change attackspeed based on fist fight

Allesn

Member
Joined
May 4, 2011
Messages
204
Solutions
1
Reaction score
24
Hello, I wan't to chance the attackspeed based on fist fighting skill, to do this, I made:
player.h
Code:
uint32_t getAttackSpeed() const {
            return (vocation->getAttackSpeed() * (1 - getSkillLevel(SKILL_FIST) * 0.00375));
        }
But I did not notice much difference...
Is there any way to improve it?
 
SOLVED, I just change
Code:
#define EVENT_CREATURE_THINK_INTERVAL 1000
to
Code:
#define EVENT_CREATURE_THINK_INTERVAL 300
in creature.h
 
that also works yes, but now its just every 300ms interval instead of 1000ms, plus you will have 3.33x more creature think events running on your server, while the linked fix disregards creature think completely and can trigger every 1ms, so if you are willing to recompile i would recommend to take that change instead :)
 
that also works yes, but now its just every 300ms interval instead of 1000ms, plus you will have 3.33x more creature think events running on your server, while the linked fix disregards creature think completely and can trigger every 1ms, so if you are willing to recompile i would recommend to take that change instead :)
How do I this change? I just remake the changes in commit?
 
replace the removed (red) lines with the added (green) lines at same positions, red/blank lines on the left side show where
 
Back
Top