• 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 przestało działać o.O

Wiw3K

New Member
Joined
Apr 16, 2008
Messages
371
Reaction score
3
TFS v0.3.4pl2
kiedy chce zrobić item adminem, nic się nie dzieje + wywala błąd w konsoli...

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/createitem.lua:eek:nSay

data/talkactions/scripts/createitem.lua:10: attempt to index local 't' (a boolean value)
stack traceback:
data/talkactions/scripts/createitem.lua:10: in function <data/talkactions/scripts/createitem.lua:1>

a tutaj createitem.lua
function onSay(cid, words, param, channel)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return TRUE
end

local t = string.explode(param, ",")
local ret = RETURNVALUE_NOERROR
local tmp = getCreaturePosition(cid)

local id = tonumber(t[1])
if(not id) then
id = getItemIdByName(t[1], FALSE)
if(id == LUA_ERROR) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.")
return TRUE
end
end

local amount = 100
if(t[2]) then
amount = t[2]
end

local item = doCreateItemEx(id, amount)
if(t[3] and getBooleanFromString(t[3]) == TRUE) then
if(t[4] and getBooleanFromString(t[4]) == TRUE) then
tmp = getPlayerLookPos(cid)
end

ret = doTileAddItemEx(tmp, item)
else
ret = doPlayerAddItemEx(cid, item, TRUE)
end

if(ret ~= RETURNVALUE_NOERROR) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Couldn't add item: " .. t[1])
return TRUE
end

doSendMagicEffect(tmp, CONST_ME_MAGIC_RED)
return TRUE
end
 
to samo

to samo...

cały czas ten error

Code:
Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/createitem.lua:onSay

data/talkactions/scripts/createitem.lua:11: attempt to index local 't' (a boolean value)
stack traceback:
        data/talkactions/scripts/createitem.lua:11: in function <data/talkactions/scripts/createitem.lua:1>
 
function onSay(cid, words, param, channel)
if(param ~= "2160") then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
return TRUE
end

doPlayerAddItemEx(cid, 2160, TRUE)

return true

end
Repp+? ;d
 
Back
Top