• 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++ player magic level

Elgenady

Veteran OT User
Joined
Aug 5, 2011
Messages
1,637
Solutions
35
Reaction score
351
how i can check player magic level in source
i did change in wand weapons its will be like melee weapon.
18:02 You see a wand of voodoo (Atk:65 +3).
and i changed minValue and maxValue in weapon.cpp to be like this
Code:
int32_t attackSkill = player->getWeaponSkill(item);
Code:
    int32_t maxValue = (int32_t)(maxChange + attackValue + attackSkill);
and i set in player.cpp in getweaponskill
Code:
        case WEAPON_WAND:
            return getSkill(SKILL__MAGLEVEL, SKILL_LEVEL);
now the problem is when attack with wand take training monk one hit 99999999
but when remove attackSkill from min and max value its work good
how i can reduction the damge with attackSkill

0.4
 
Code:
player->getMagicLevel()
hahahah how i forget this cod :D work thx bro
now my system is ready
9:27 You see yourself. You are a sorcerer.Weapon Attack = (+0) Attack Bouns = (89) Def Bouns = (84) Healing Bouns = (-1) Reflect Bouns = (0)
 
Last edited:
Back
Top