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

Problem with attack speed

vvafel

New Member
Joined
Mar 5, 2010
Messages
22
Reaction score
0
Location
Poland.
Hello,
I need help with this code. The thing is that I want to make it like that: After reaching skill 99 in fist fighting, the attack speed will be 15 ms and it wont change anymore even if player get higher skill.

Code:
uint32_t Player::getAttackSpeed()
{
return vocation->getAttackSpeed() - getSkill(SKILL_FIST, SKILL_LEVEL) * 10;
}

Thanks for your help,

Regards, Vvafel
 
Code:
if Player::getSkill(SKILL_FIST, SKILL_LEVEL)>=(or =>)99 
return 15;
else
return vocation->getAttackSpeed() - getSkill(SKILL_FIST, SKILL_LEVEL) * 10;
not tested
 
Last edited:
Code:
id Player::getSkill(SKILL_FIST, SKILL_LEVEL)>=(or =>)99 
return 15
else
return vocation->getAttackSpeed() - getSkill(SKILL_FIST, SKILL_LEVEL) * 10;
not tested

Code:
uint32_t Player::getAttackSpeed()
{
id Player::getSkill(SKILL_FIST, SKILL_LEVEL) >= 99 
return 15
else
return vocation->getAttackSpeed() - getSkill(SKILL_FIST, SKILL_LEVEL) * 10;
}

../player.cpp: In member function `virtual uint32_t Player::getAttackSpeed()':

../player.cpp:2822: error: expected `;' before "Player"

make.exe: *** [../player.o] Error 1

Wykonanie zakończone
 
return 15;
right
you know what? error tells what is wrong
and its if not if, missclick sorry

I reccommend you to at least tru understanding code youre pasting caus ethis way you can lose your serv really easy
 
Back
Top