SN
pedido

[Pedido] Attackspeed

Por Snowsz, 23 de jan. de 2012 em Resolvidos

otserv
tibia
2
1.3k
SnowszS
23 de janeiro de 2012 às 11:05

Bem um amigo medeu uma opinião por isso editei entrem nesse topico novo desculpem por isso :S

 

 

http://www.xtibia.com/forum/topic/179293-pedido-attack-speed/

Editado Janeiro 27 por Snowsz

2 meses depois...
AnastazjoA
29 de março de 2012 às 05:22

player.cpp:

 

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

return vocation->getAttackSpeed();
}

 

substitua o:

 

uint32_t Player::getAttackSpeed()
{
uint32_t attackSpeed = vocation->getAttackSpeed();
uint32_t skilll = getSkill(SKILL_AXE, SKILL_LEVEL);
Item* weapon = getWeapon();

if(skilll > 150)
		skilll = 150;

if(weapon && weapon->getAttackSpeed() != 0)
		attackSpeed = weapon->getAttackSpeed();

return attackSpeed - (skilll * 5);
}

 

creature.h

 

#define EVENT_CREATURECOUNT 10
#define EVENT_CREATURE_THINK_INTERVAL 500

 

substitua o:

 

#define EVENT_CREATURECOUNT 1
#define EVENT_CREATURE_THINK_INTERVAL 100

Editado Março 29 por Anastazjo