• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

monster level

Elgenady

Veteran OT User
Joined
Aug 5, 2011
Messages
1,683
Solutions
36
Reaction score
388
how i can use this cod
int32_t levels = monster->getMonsterType()->levelMax - monster->getMonsterType()->levelMin;
i want to calculate between levellmax and levelmin

tfs 0.4 or 1.3
 
Solution
TFS 1.X+
Code:
MonsterType* mType = g_monsters.getMonsterType(name); -- per example "Demon"
if (mType) {
std::cout << mType->info.minLevel; << std::endl;
}
// OR
MonsterType* mType = monster->mType;
if (mType) {
std::cout << mType->info.minLevel; << std::endl;
}
TFS 1.X+
Code:
MonsterType* mType = g_monsters.getMonsterType(name); -- per example "Demon"
if (mType) {
std::cout << mType->info.minLevel; << std::endl;
}
// OR
MonsterType* mType = monster->mType;
if (mType) {
std::cout << mType->info.minLevel; << std::endl;
}
 
Solution
TFS 1.X+
Code:
MonsterType* mType = g_monsters.getMonsterType(name); -- per example "Demon"
if (mType) {
std::cout << mType->info.minLevel; << std::endl;
}
// OR
MonsterType* mType = monster->mType;
if (mType) {
std::cout << mType->info.minLevel; << std::endl;
}
thx solved
 
Last edited:
Back
Top