Lua:
local fromPos = {x=995, y=667, z=7}
local toPos = {x=1000, y=672, z=7}
function onUse(cid, item, frompos, item2, topos)
local i = 0
for pos, thing in mapArea(fromPos, toPos, 253) do
if isPlayer(thing.uid) == TRUE then
doPlayerSendTextMessage(thing.uid, TALKTYPE_ORANGE_1, 'LAST MAN STANDING! KILL EVERYONE!')
local pos = {x=992 + i % 12, y=630 + i % 3, z=7}
doTeleportThing(thing.uid, pos)
end
i = i + 1
end
doPlayerSendTextMessage(cid, TALKTYPE_ORANGE_1, 'Last Man Standing is running!')
return TRUE
end
error
Code:
[04/05/2010 21:32:45] Lua Script Error: [Action Interface]
[04/05/2010 21:32:45] data/actions/scripts/quests/last man.lua:onUse
[04/05/2010 21:32:46] data/actions/scripts/quests/last man.lua:5: attempt to call global 'mapArea' (a nil value)
[04/05/2010 21:32:46] stack traceback:
[04/05/2010 21:32:46] data/actions/scripts/quests/last man.lua:5: in function <data/actions/scripts/quests/last man.lua:3>
Need it to a event
rep++
Last edited: