Yatsu
I'm nobody.
- Joined
- Feb 12, 2016
- Messages
- 27
- Reaction score
- 2
@Bloody-War
Just go to items.xml and decrease the attack of this axe.
Just go to items.xml and decrease the attack of this axe.
creature.hDoes anyone know how to convert this code to TFS 1.2? <3
static constexpr int32_t EVENT_CREATURE_THINK_INTERVAL
uint32_t getAttackSpeed() const
return (vocation->getAttackSpeed() * (1 - getSkillLevel(SKILL_FIST) * 0.00375));
creature.h
look for:
change tha value (default 500, I guess) to whatever you want. I recommend not letting below 200Lua:static constexpr int32_t EVENT_CREATURE_THINK_INTERVAL
player.h
look for:
change the return to your formula.Lua:uint32_t getAttackSpeed() const
Example:
In this type, the attack speed will vary according to the fist skillLua:return (vocation->getAttackSpeed() * (1 - getSkillLevel(SKILL_FIST) * 0.00375));