Ir para conteúdo

Featured Replies

Postado

na minha source atual o limite de attack speed eh uns 500, quando o player usa o bot "auto 1 attack target" ele ignora esses 500 de attack speed, indo pra o attack speed real. alguem poderia me mandar a tag pra eu colar na minha source? obgd

  • Respostas 7
  • Visualizações 1.7k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • creature.h   #define EVENT_CREATURECOUNT 1 #define EVENT_CREATURE_THINK_INTERVAL 50     player.cpp   uint32_t Player::getAttackSpeed() {     Item* weapon = getWeapon();     // nie 'attackSp

Postado
  • Diretor

creature.h

 

#define EVENT_CREATURECOUNT 1
#define EVENT_CREATURE_THINK_INTERVAL 50

 

 

player.cpp

 

uint32_t Player::getAttackSpeed()
{
    Item* weapon = getWeapon();
    // nie 'attackSpeed', bo taka zmienna juz moze istniec w klasie Creature/Player
    int32_t attackSpeedzik;
    if(weapon && weapon->getAttackSpeed() != 0)
        attackSpeedzik = vocation->getAttackSpeed() - (getSkill(SKILL_AXE, SKILL_LEVEL) * 13) - weapon->getAttackSpeed();
    else
        attackSpeedzik = vocation->getAttackSpeed() - (getSkill(SKILL_AXE, SKILL_LEVEL) * 13);

    if(attackSpeedzik > 0)
        return (uint32_t) attackSpeedzik;
    else
        return 1;
}

 

20230912_034613.png.cf49b650c34dd7d7b1f79bd49c70f53c.png

Eu sou um entusiasta da programação apaixonado por ajudar a comunidade open source a crescer. Sempre em busca de novos desafios e oportunidades para contribuir com meu código.  #OpenSource #Programação #Contribuição

 

Postado
  • Autor

@alexxxxxxx,

 

 

 

player.cpp   uint32_t Player::getAttackSpeed() {     Item* weapon = getWeapon();     // nie 'attackSpeed', bo taka zmienna juz moze istniec w klasie Creature/Player     int32_t attackSpeedzik;     if(weapon && weapon->getAttackSpeed() != 0)         attackSpeedzik = vocation->getAttackSpeed() - (getSkill(SKILL_AXE, SKILL_LEVEL) * 13) - weapon->getAttackSpeed();     else         attackSpeedzik = vocation->getAttackSpeed() - (getSkill(SKILL_AXE, SKILL_LEVEL) * 13);     if(attackSpeedzik > 0)         return (uint32_t) attackSpeedzik;     else         return 1; }

 

no caso é pra substituir isso 

uint32_t Player::getAttackSpeed()

 

por isso?

 

Item* weapon = getWeapon();

    // nie 'attackSpeed', bo taka zmienna juz moze istniec w klasie Creature/Player
    int32_t attackSpeedzik;
    if(weapon && weapon->getAttackSpeed() != 0)
        attackSpeedzik = vocation->getAttackSpeed() - (getSkill(SKILL_AXE, SKILL_LEVEL) * 13) - weapon->getAttackSpeed();
    else
        attackSpeedzik = vocation->getAttackSpeed() - (getSkill(SKILL_AXE, SKILL_LEVEL) * 13);

    if(attackSpeedzik > 0)
        return (uint32_t) attackSpeedzik;
    else
        return 1;

Editado por poko360 (veja o histórico de edições)

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo