115820
Member
In my server when player use UTAMO VITA, description attack :
dont show player name attacker.
- You lose x mana blocking an attack by (null).
dont show player name attacker.
Version 0.4, i use that sources 8.60 / Tfs 0.4 ( BROKEN 2B HP AND MP LIMIT same for Monsters ) OFFICAL RELEASE1: What server
2: What version
1 + 2 = faster help
you downloaded a broken source lolVersion 0.4, i use that sources 8.60 / Tfs 0.4 ( BROKEN 2B HP AND MP LIMIT same for Monsters ) OFFICAL RELEASE
Server is my own.
you downloaded a broken source lol
that damage string is handled in the source in combat.cppWhy broken?
About the problem I had the problem befor too but I think ( unsure ) it was something in datapack xD
i wasnt saying the problem is the mana valuesBut the error is only in mana. When I attack to take life, it appears normally.
If I change the uint64_t / int64_t mana, can I fix this error?
Uhm. I dont know how to FIX. AFFFi wasnt saying the problem is the mana values
its just an example of how the source you downloaded is broken
the damage string should be somewhere in combat.cpp
void Player::drainMana(Creature* attacker, CombatType_t combatType, int64_t damage)
{
Creature::drainMana(attacker, combatType, damage);
char buffer[150];
if(attacker)
sprintf(buffer, "You lose %d mana blocking an attack by %s.", damage, attacker->getNameDescription().c_str());
else
sprintf(buffer, "You lose %d mana.", damage);
sendStats();
sendTextMessage(MSG_EVENT_DEFAULT, buffer);
}
void Player::drainMana(Creature* attacker, CombatType_t combatType, int64_t damage)
{
Creature::drainMana(attacker, combatType, damage);
char buffer[150];
if(attacker)
sprintf(buffer, "You lose %d mana blocking an attack by %s.", damage, attacker->getNameDescription().c_str());
else
sprintf(buffer, "You lose %d mana.", damage);
sendStats();
sendTextMessage(MSG_EVENT_DEFAULT, buffer);
}
virtual const std::string& getNameDescription() const = 0;
virtual const std::string& getName() const = 0;
virtual const std::string& getNameDescription() const = 0;
virtual std::string getDescription(int32_t lookDistance) const;