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

Speed attack skill for TSF 0.3.5pl1

Mexa94

New Member
Joined
Dec 26, 2009
Messages
7
Reaction score
0
Location
Poland
I need the finished code to the ability to attack speed to TSF 0.3.5pl1. This skill is to be fist fighting.

I use google translator ;p
 
Hmmm find in source "vocationAttackSpeed" or semething like this and change formula to
Code:
attackspeed = (base attack - (player->getSkill(SKILL_FIST, SKILL_LEVEL)*2))
... or something like that
 
I found something like this could do with this thing?

uint32_t Player:: getAttackSpeed ()
{
Item * weapon = getWeapon ();
if (weapon & & weapon-> getAttackSpeed ()! = 0)
return weapon-> getAttackSpeed ();

return vocation-> getAttackSpeed ();
}


Sorry for double post :/
 
Last edited:
player.cpp
Find:
Code:
void Player::doAttacking
and now:
Code:
lastAttack = OTSYS_TIME() - ((getAttackSpeed() + Player->getSkill(SKILL_FIST, SKILL_LEVEL)*3))- 1;

If player have 100 fist skill and basespeed is 2000 then now basespeed is a 1700.
 
Last edited:
There is more optionaly script and it don't lagging the server first to check this code i mount your code but this shit is lagging, and when i write my own script there was about 100 players and don't then i don't recomend this script
PS Sry for my bad english
 
Back
Top