rafaking
New Member
- Joined
- Aug 12, 2009
- Messages
- 24
- Reaction score
- 0
Hello Im updating my server, but having some toubles with this script
"attempt to call method 'addOutfit' <a nil value>"
"cannot load 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
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....."