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

I'm having trouble script someone can help me to solve the error

pirulitopiu

New Member
Joined
Sep 22, 2017
Messages
3
Reaction score
0
[24/09/2017 17:19:02] [Interface Error - TalkAction]
[24/09/2017 17:19:02] dados / talkactions / scripts / tpp.lua : eek:nSay
[24/09/2017 17:19:02] Descrição:
[24/09/2017 17:19:02] tenta indexar um valor nulo
[24/09/2017 17:19:02] rastreamento de pilha:
[24/09/2017 17:19:02] [C]: na função 'doSendMagicEffect'
[24/09/2017 17:19:02] dados / talkactions / scripts / tpp.lua: 6: na função <data / talkactions / scripts / tpp.lua: 1>

[24/09/2017 17:19:13] [Interface Error - TalkAction]
[24/09/2017 17:19:13] dados / talkactions / scripts / tpp.lua : eek:nSay
[24/09/2017 17:19:13] Descrição:
[24/09/2017 17:19:13] tenta indexar um valor nulo
[24/09/2017 17:19:13] rastreamento de pilha:
[24/09/2017 17:19:13] [C]: na função 'getThingfromPos'
[24/09/2017 17:19:13] dados / conversações / scripts / tpp.lua: 10: na função <data / talkactions / scripts / tpp.lua: 1>

function onSay(cid, words, param)
if words=="/opentp" then
local pos = {x=1026 , y=1031 , z=7} ---onde tp vai ser criado
local topos = {x=1036 , y=1042 , z=7} ---a position para onde sera teleportado
doCreateTeleport(1387, topos , pos)
doSendMagicEffect(createPos , math.random(0,0))
return true
end
if words=="/closetp" then
doRemoveItem(getThingfromPos(pos).uid,1)
return false
end

position = {x= 1036, y= 1042, z= 7} --A Position que todos os monsters iram nascer

local name = abra
local name1 = bulbasaur
local name2 = charmander

doSummonCreature(name, position)
doSummonCreature(name1, position)
doSummonCreature(name2, position)
return false
end

<talkaction log="yes" words="/opentp;/closetp" access="5" event="script" value="tpp.lua"/>
 
Last edited:
Back
Top