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

how modify conditions

Hidroponica

Member
Joined
Feb 16, 2016
Messages
75
Reaction score
8
helloo, Im trying to modify condition drunk, but when i compile changes nothing

creature.cpp​

void Creature::eek:nWalk(Direction& dir)
{
if (hasCondition(CONDITION_DRUNK)) {
uint32_t r = uniform_random(0, 20);
if (r <= DIRECTION_DIAGONAL_MASK) {
if (r < DIRECTION_DIAGONAL_MASK) {
dir = static_cast<Direction>(r);
}
g_game.addMagicEffect(getPosition(), CONST_ME_STUN);
}

i change
g_game.internalCreatureSay(this, TALKTYPE_MONSTER_SAY, "Hicks!", false);
for
g_game.addMagicEffect(getPosition(), CONST_ME_STUN);
 
Last edited:
Back
Top