• 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!

Attack rate for monsters

Gale

The Crooked Fate
Joined
Jun 7, 2008
Messages
56
Reaction score
0
I'm curious if there is a global option to make all the monsters attack faster, it seems that they all attack very slow and i would like to fix this
 
I use onThink() creaturescript on all of my monsters.
and addEvent() function to make actions happen in milliseconds.
 
If you want that ALL monster's attack be faster, then go to monsters.cpp ( TFS 1.2 )

modify this:
if ((attr = node.attribute("speed")) || (attr = node.attribute("interval"))) {
sb.speed = std::max<int32_t>(1, pugi::cast<int32_t>(attr.value()));
}

to:
if ((attr = node.attribute("speed")) || (attr = node.attribute("interval"))) {
sb.speed = std::max<int32_t>(1, pugi::cast<int32_t>(attr.value() * NUMBER MULTIPLIER ));
}


be careful!!! remember this modification may return overpowered monsters
 
Back
Top