• 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 dont move if dont have storage

rafaeru

Active Member
Joined
Mar 6, 2013
Messages
139
Solutions
10
Reaction score
30
Location
Poland
GitHub
rafaeru97
Hello, i have question:
How i can do if player have storage value different than 13 monster no move ( as GOD )

if getPlayerStorageValue(cid, 29004) ~= 13 then
MONSTER DONT MOVE TO PLAYER
end

I search this in monster.cpp but i cant find. Any suggestions ?
 
Last edited:
Something like this in monster.cpp in function bool Monster::isTarget
add this:

Code:
    Player* player = creature->getPlayer();
    if (player && player->getStorageValue(key, value)){
        return false;
    {
 
Back
Top