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

God comamnd /m 8 monster spawn limit Pictures

Pokurwieniec

New Member
Joined
Feb 1, 2016
Messages
43
Reaction score
1
How to fix it to spawn more than 8 monsters?

HYu8CIV.jpg
 
It also influence everywhere, here example demon oak:
rDbZ0Ht.jpg


You see it spawned monsters only in square around wtf is this ;D after spawn this square of 9 monsters errors appears as above
 
Why not? I create them on top on each other in quite several occasions.

Game.createMonster("name", pos)

Yes, but with force = true.
Code:
Game.createMonster(monsterName, position[, extended = false[, force = false]])
 
Back in the days I remember in 0.3.4 i was able to summon unlimited monsters and they are spawing just next to each other not in the same sqm and there wasn'r a problem in quests ike demon oak for example..

Now in 0.4 r3884 I if it's something with this part from luascript.cpp
Code:
int32_t LuaInterface::luaDoCreateMonster(lua_State* L)
{
    //doCreateMonster(name, pos[, extend = false[, force = false[, displayError = true]]])
    bool displayError = true, force = false, extend = false;
    int32_t params = lua_gettop(L);
    if(params > 4)
        displayError = popNumber(L);

    if(params > 3)
        force = popNumber(L);

    if(params > 2)
        extend = popNumber(L);

    PositionEx pos;
    popPosition(L, pos);

    std::string name = popString(L);
    Monster* monster = Monster::createMonster(name.c_str());
    if(!monster)
    {
        if(displayError)
            errorEx("Monster with name '" + name + "' not found");

        lua_pushboolean(L, false);
        return 1;
    }

    if(!g_game.placeCreature(monster, pos, extend, force))
    {
        delete monster;
        if(displayError)
            errorEx("Cannot create monster: " + name);

        lua_pushboolean(L, true);
        return 1;
    }

    ScriptEnviroment* env = getEnv();
    lua_pushnumber(L, env->addThing((Thing*)monster));
    return 1;
}

Code:
bool displayError = true, force = true, extend = false;
I changed force = true
and ye I can create unlimited monsters but in one sqm damn! it doesn't make sense i want tthat after create square of 9 monsters rest of monsters spawing beyond this, next to
 
Last edited:
Back
Top Bottom