Ir para conteúdo

Featured Replies

  • Respostas 90
  • Visualizações 15.3k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @Ackerzin melhor forma de você aplicar em qualquer source é pegar uma função existe na sua source e usar o DiffCheker para comparar os códigos e deixar o do tópico com as mesmas funções e chamadas da

  • Rapaziada, acabei de falar com o @Mathias Kenfi e ele vai ver todos erros, e fazer uma versão 2.0 com para adicionar uma porcentagem no dano, sucesso. Observação, ele falou todos que participaram no t

  • @Mathias Kenfi Achei um "bug" Se você estiver equipado um item com manaAbsorb e usar alguma magia de treinar ml "power down, chakra down " que contenha if getPlayerMana(cid) > 1 then    

Posted Images

Postado

inline int32_t Item::getCriticalHitChance() const
{
	bool ok;
	int32_t v = getIntegerAttribute("criticalhitchance", ok);
	if(ok)
		return v;

	return items[id].criticalHitChance;
}

inline int32_t Item::getDodgeChance() const
{
	bool ok;
	int32_t v = getIntegerAttribute("dodgechance", ok);
	if(ok)
		return v;

	return items[id].dodgeChance;
}

inline int32_t Item::getLifeAbsorb() const
{
	bool ok;
	int32_t v = getIntegerAttribute("lifeabsorb", ok);
	if(ok)
		return v;

	return items[id].lifeAbsorb;
}

inline int32_t Item::getManaAbsorb() const
{
	bool ok;
	int32_t v = getIntegerAttribute("manaabsorb", ok);
	if(ok)
		return v;

	return items[id].manaAbsorb;
}

inline int32_t Item::getLifeLeech() const
{
	bool ok;
	int32_t v = getIntegerAttribute("lifeleech", ok);
	if(ok)
		return v;

	return items[id].lifeLeech;
}

inline int32_t Item::getManaLeech() const
{
	bool ok;
	int32_t v = getIntegerAttribute("manaleech", ok);
	if(ok)
		return v;

	return items[id].manaLeech;
}
Agora, Senju uchira disse:

inline int32_t Item::getCriticalHitChance() const
{
	bool ok;
	int32_t v = getIntegerAttribute("criticalhitchance", ok);
	if(ok)
		return v;

	return items[id].criticalHitChance;
}

inline int32_t Item::getDodgeChance() const
{
	bool ok;
	int32_t v = getIntegerAttribute("dodgechance", ok);
	if(ok)
		return v;

	return items[id].dodgeChance;
}

inline int32_t Item::getLifeAbsorb() const
{
	bool ok;
	int32_t v = getIntegerAttribute("lifeabsorb", ok);
	if(ok)
		return v;

	return items[id].lifeAbsorb;
}

inline int32_t Item::getManaAbsorb() const
{
	bool ok;
	int32_t v = getIntegerAttribute("manaabsorb", ok);
	if(ok)
		return v;

	return items[id].manaAbsorb;
}

inline int32_t Item::getLifeLeech() const
{
	bool ok;
	int32_t v = getIntegerAttribute("lifeleech", ok);
	if(ok)
		return v;

	return items[id].lifeLeech;
}

inline int32_t Item::getManaLeech() const
{
	bool ok;
	int32_t v = getIntegerAttribute("manaleech", ok);
	if(ok)
		return v;

	return items[id].manaLeech;
}

NAO TEM NA TFS 0.4.0.0

@up

Postado
Spoiler

In file included from item.h:28:0,
                 from tile.h:23,
                 from map.h:26,
                 from creature.h:28,
                 from player.h:23,
                 from actions.cpp:24:
items.h:168:28: error: redeclaration of ‘int32_t ItemType::criticalHitChance’
   int32_t criticalHitChance, dodgeChance, lifeAbsorb, manaAbsorb, lifeLeech, manaLeech;
                            ^
items.h:161:19: note: previous declaration ‘int32_t ItemType::criticalHitChance’
   int32_t attack, criticalHitChance, extraAttack, defense, extraDefense, armor, breakChance, hitCha
                   ^
In file included from tile.h:23:0,
                 from map.h:26,
                 from creature.h:28,
                 from player.h:23,
                 from actions.cpp:24:
item.h:122:2: error: redefinition of ‘ATTR_CRITICALHITCHANCE’
  ATTR_CRITICALHITCHANCE = 44,
  ^
item.h:116:2: note: ‘ATTR_CRITICALHITCHANCE’ previously defined here
  ATTR_CRITICALHITCHANCE = 44,
  ^
In file included from tile.h:23:0,
                 from map.h:26,
                 from creature.h:28,
                 from player.h:23,
                 from actions.cpp:24:
item.h:269:11: error: ‘int32_t Item::getCriticalHitChance() const’ cannot be overloaded
   int32_t getCriticalHitChance() const;
           ^
item.h:265:11: error: with ‘int32_t Item::getCriticalHitChance() const’
   int32_t getCriticalHitChance() const;
           ^
item.h:461:16: error: redefinition of ‘int32_t Item::getCriticalHitChance() const’
 inline int32_t Item::getCriticalHitChance() const
                ^
item.h:411:16: note: ‘int32_t Item::getCriticalHitChance() const’ previously defined here
 inline int32_t Item::getCriticalHitChance() const
                ^
In file included from actions.cpp:24:0:
player.h:493:19: error: ‘virtual int32_t Player::getCriticalHitChance() const’ cannot be overloaded
   virtual int32_t getCriticalHitChance() const;
                   ^
player.h:491:19: error: with ‘virtual int32_t Player::getCriticalHitChance() const’
   virtual int32_t getCriticalHitChance() const;
                   ^
Makefile:567: recipe for target 'actions.o' failed
make[1]: *** [actions.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/srcteste'
Makefile:418: recipe for target 'all' failed
make: *** [all] Error 2

eu pensei que tinha errado algo, mas refiz tudo do zero com mais atenção e deu novamente o mesmo erro, estou usando OTX2 :v

Em 26/07/2020 em 15:05, Senju uchira disse:

image.thumb.png.165c1bb480d975b1ac06fd6df9503b84.png

 

 

estou com esse erro ao compila

estou mesmo problema erro ao compila linux

Postado
30 minutos atrás, Yinko Yan San disse:
  Mostrar conteúdo oculto

In file included from item.h:28:0,
                 from tile.h:23,
                 from map.h:26,
                 from creature.h:28,
                 from player.h:23,
                 from actions.cpp:24:
items.h:168:28: error: redeclaration of ‘int32_t ItemType::criticalHitChance’
   int32_t criticalHitChance, dodgeChance, lifeAbsorb, manaAbsorb, lifeLeech, manaLeech;
                            ^
items.h:161:19: note: previous declaration ‘int32_t ItemType::criticalHitChance’
   int32_t attack, criticalHitChance, extraAttack, defense, extraDefense, armor, breakChance, hitCha
                   ^
In file included from tile.h:23:0,
                 from map.h:26,
                 from creature.h:28,
                 from player.h:23,
                 from actions.cpp:24:
item.h:122:2: error: redefinition of ‘ATTR_CRITICALHITCHANCE’
  ATTR_CRITICALHITCHANCE = 44,
  ^
item.h:116:2: note: ‘ATTR_CRITICALHITCHANCE’ previously defined here
  ATTR_CRITICALHITCHANCE = 44,
  ^
In file included from tile.h:23:0,
                 from map.h:26,
                 from creature.h:28,
                 from player.h:23,
                 from actions.cpp:24:
item.h:269:11: error: ‘int32_t Item::getCriticalHitChance() const’ cannot be overloaded
   int32_t getCriticalHitChance() const;
           ^
item.h:265:11: error: with ‘int32_t Item::getCriticalHitChance() const’
   int32_t getCriticalHitChance() const;
           ^
item.h:461:16: error: redefinition of ‘int32_t Item::getCriticalHitChance() const’
 inline int32_t Item::getCriticalHitChance() const
                ^
item.h:411:16: note: ‘int32_t Item::getCriticalHitChance() const’ previously defined here
 inline int32_t Item::getCriticalHitChance() const
                ^
In file included from actions.cpp:24:0:
player.h:493:19: error: ‘virtual int32_t Player::getCriticalHitChance() const’ cannot be overloaded
   virtual int32_t getCriticalHitChance() const;
                   ^
player.h:491:19: error: with ‘virtual int32_t Player::getCriticalHitChance() const’
   virtual int32_t getCriticalHitChance() const;
                   ^
Makefile:567: recipe for target 'actions.o' failed
make[1]: *** [actions.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/srcteste'
Makefile:418: recipe for target 'all' failed
make: *** [all] Error 2

eu pensei que tinha errado algo, mas refiz tudo do zero com mais atenção e deu novamente o mesmo erro, estou usando OTX2 :v

estou mesmo problema erro ao compila linux

JA ERA MEU AMIGO QUEM CONSEGUIL CONSEGUIL.

Postado
11 minutos atrás, Senju uchira disse:

JA ERA MEU AMIGO QUEM CONSEGUIL CONSEGUIL.

ta foda kk

 

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