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

doSummonCreature problem

boby psaico

Member
Joined
Oct 17, 2009
Messages
84
Reaction score
5
Hi guys, well, my problem is with function doSummonCreature.
If i use it for a rat, e.g., he cant be summoned on fire fields or with players around.
How can i 'force' this summon?
 
i found this in global.lua
but i dont know where change to ForceSummon in stack with players

function doForceSummonCreature(name, pos)
local creature = doSummonCreature(name, pos)
if creature == false then
pos.stackpos = 1

local lastUid = nil
while true do
local thing = getTileThingByPos(pos)
if thing.uid == 0 or thing.uid == lastUid or not isItem(thing.uid) then
break
end

lastUid = thing.uid
doRemoveItem(thing.uid)
end

creature = doSummonCreature(name, pos)
end
return creature
end
 
Back
Top