• 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!

monster level

Elgenady

Veteran OT User
Joined
Aug 5, 2011
Messages
1,663
Solutions
36
Reaction score
371
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:

Similar threads

Back
Top