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

Tile

Onizuka

Member
Joined
Jul 5, 2008
Messages
2,291
Reaction score
14
When Monster x Dies, and when you put it corps on a tile with XXXX id and pull the lever, wall with id XXXX removes for 120 seconds. then goes back.

It's for INQ quest so 4-5 Walls for each corps.


Regards,
Thanks.


Also could someone edit this script so that it works without errors?

Code:
function onSay(cid, words, param, channel)   
        local gm = getCreatureName(cid)
        for _, cid in ipairs(getPlayersOnline()) do
                local accId = getPlayerAccount(cid)
                if(getNotationsCount(accId) < 1) then
                    doPlayerAddItem(cid, 2160, 1)
                        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Everyone have been rewarded a "..getItemNameById(t[1]).." by "..gm.." for the reason: "..tostring(t[2])..".")
                        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS)                
                end
        end
        return TRUE
end

Tfs 3.6pl1

Error:
Code:
[Error - TalkAction Interface]
data/talkactions/scripts/reward.lua:onSay
Description:
data/lib/function.lua:288: attempt to index a boolean value
stack traceback:
        data/lib/function.lua:288: in function 'getItemNameById'
        data/talkactions/scripts/reward.lua:8: in function <data/talkactions/scripts/reward.lua:1>

[Error - TalkAction Interface]
data/talkactions/scripts/reward.lua:onSay
Description:
data/talkactions/scripts/reward.lua:7: attempt to index global 't' (a nil value

stack traceback:
        data/talkactions/scripts/reward.lua:7: in function <data/talkactions/scripts/reward.lua:1>



Thanks.
 
Last edited:
Back
Top