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

C++ Monster Level

jel

Member
Joined
Mar 22, 2014
Messages
302
Reaction score
12
Hi, can anyone tell me how I can put this part of the monster level system in the canary distro?
I skipped the monsters.cpp file and managed to complete the compilation, but the monsters in the game do not have a level

distro canary
no have Monsters::loadMonster on distro canary

any ideas or solutions?

using: monster level

where can I put this part?
Lua:
if ((node = monsterNode.child("level"))) {
        if ((attr = node.attribute("min"))) {
            mType->info.minLevel = pugi::cast<int32_t>(attr.value());
        } else {
            std::cout << "[Error - Monsters::loadMonster] Missing min level. " << file << std::endl;
        }
        if ((attr = node.attribute("max"))) {
            mType->info.maxLevel = pugi::cast<int32_t>(attr.value());
        } else {
            std::cout << "[Error - Monsters::loadMonster] Missing max level. " << file << std::endl;
        }
    }
 
Back
Top