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

Lua Script Problem Tfs 1.0 To 1.2

rafaking

New Member
Joined
Aug 12, 2009
Messages
24
Reaction score
0
Hello Im updating my server, but having some toubles with this script
local condition = Condition(CONDITION_OUTFIT)
condition:setTicks(20 * 1000) -- should be approximately 20 seconds
condition:addOutfit({lookType = 137}) -- amazon looktype

function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)

player:addCondition(condition)
player:say('You disguise yourself as a beautiful amazon!', TALKTYPE_MONSTER_SAY)
Item(item.uid):remove()

return true
end

"attempt to call method 'addOutfit' <a nil value>"
"cannot load script....."
 
Back
Top