-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
NECESSITO, RME PARA VERSÕES 8.4, 8.54 E 8.6. o mesmo vale para MAP TRACKER dessas versões
By Palindek,
- 0 replies
- 1308 views
-
- 9 answers
- 2376 views
-
- 0 answers
- 2238 views
-
- 1 answer
- 1543 views
-
- 15 answers
- 3001 views
-

Question
Squash01 2
Entao Galera Esta dando este Erro na Distro
[6/12/2015 23:6:7] [Error - MoveEvents Interface]
[6/12/2015 23:6:7] data/movements/scripts/warzone.lua:onStepIn
[6/12/2015 23:6:7] Description:
[6/12/2015 23:6:7] attempt to index a nil value
[6/12/2015 23:6:7] stack traceback:
[6/12/2015 23:6:7] [C]: in function 'doTeleportThing'
[6/12/2015 23:6:7] data/movements/scripts/warzone.lua:20: in function
--- [[ Warzone Event by Killua, antigo amoeba13 ]] ---
local kickposs = {x=160, y=53, z=7} -- Posicao pra onde o player vai ser kikado se permanecer mais de 30 minutos na sala do Deathstriker.(Se ele sair voluntariamente, vai pra essa pos tbm)
function kikar(cid)
doTeleportThing(cid, kickposs)
doPlayerSendTextMessage(cid, 18, "You have been removed from the boss room, because you can not stay for more than 30 minutes.")
return true
end
function onStepIn(cid, item, position, topos, frompos)
if not isPlayer(cid) then
return false
end
if item.actionid == 5157 then
doPlayerSendTextMessage(cid, 18, "You have half an hour to heroically defeat Deathstrike. Otherwise you'll be teleported out by the gnomish emergency device.")
evento = addEvent(kikar, 30*60*1000, cid)
elseif item.actionid == 5158 then
doTeleportThing(cid, tpsaida)
stopEvent(evento)
end
return true
end
Link to comment
https://xtibia.com/forum/topic/238217-error-moveevents-ajuda-rapidinha/Share on other sites
5 answers to this question
Recommended Posts