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

Mortal Combat Arena Bug

russogracie

New Member
Joined
Sep 9, 2010
Messages
205
Reaction score
2
The error is happening when I pull the lever is:

<LuaDoCreateMonster> Monster with name '' not found

This is my script that is being used:

local from = {x=33053, y=31025, z=3}
local to = {x=33074, y=31045, z=3}

local monsters = {
{{x=33219, y=31657, z=3}, 'Baron Brute'},
{{x=33224, y=31659, z=3}, 'The Axeorcist'}
}

local players = {
{{x=33080, y=31014, z=2}, {x=33055, y=31034, z=3}},
{{x=33081, y=31014, z=2}, {x=33055, y=31035, z=3}}
}

local level = 120

function onUse(cid, item, fromPosition, itemEx, toPosition)
local t = {}
if item.itemid == 1945 then
for i = 1, #players do
t = getTopCreature(players[1]).uid
if not isPlayer(t) then
return doCreatureSay(cid, 'You need ' .. #players .. ' players to do this quest.', TALKTYPE_ORANGE_1, false, cid)
elseif getPlayerLevel(cid) < level then
return doCreatureSay(cid, 'All players have to be level ' .. level .. ' to do this quest.', TALKTYPE_ORANGE_1, false, cid)
end
end
for i = 1, #t do
doTeleportThing(t, players[2])
doSendMagicEffect(players[1], CONST_ME_TELEPORT)
doSendMagicEffect(players[2], CONST_ME_TELEPORT)
end
for i = 1, #monsters do
doCreateMonster(monsters[2], monsters[1])
doSendMagicEffect(monsters[1], CONST_ME_TELEPORT)
end
else
for x = from.x, to.x do
for y = from.y, to.y do
local v = getTopCreature({x=x, y=y, z=from.z}).uid
if isPlayer(v) then
return doCreatureSay(cid, 'There is already a team in the battle room.', TALKTYPE_ORANGE_1, false, cid)
elseif isMonster(v) then
table.insert(t, v)
end
end
end
for i = 1, #t do
doRemoveCreature(t)
end
end

return doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945)
end


Thank you in advance.
 
here:
LUA:
doCreateMonster(monsters[i][2], monsters[i][1])
doSendMagicEffect(monsters[i][1], CONST_ME_TELEPORT)


kind regards, Evil Hero.
 
Add a teleporter or better a creaturescript to create a tp or teleport you out.
Action script won't handle that as long you won't add addEvent function
 
Back
Top