Hi!
I hope someone can solve my problem. I thinks it isn't hard (;
I use that script:
And I got such an error:
thanks in advance!
I hope someone can solve my problem. I thinks it isn't hard (;
I use that script:
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local femaleOutfits = { ["nightmare"]={269} }
local maleOutfits = { ["nightmare"]={268} }
local msg = {"Full Addon Set sucesfully added!", "Not Possible"}
local queststatus = getPlayerStorageValue(cid,12455)
if queststatus == -1 then
local pPos = getPlayerPosition(cid)
setPlayerStorageValue(cid,12455,1)
doSendMagicEffect(pPos, 28)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1])
if(getPlayerSex(cid) == 0)then
doPlayerAddOutfit(cid, femaleOutfits[param][1], 3)
else
doPlayerAddOutfit(cid, maleOutfits[param][1], 3)
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2])
end
return 1
end
And I got such an error:
Code:
[Error - Action Interface]
data/actions/scripts/quests/alladdons.lua:onUse
Description:
data/actions/scripts/quests/alladdons.lua:14: attempt to index field '?' (a nil value)
stack traceback:
data/actions/scripts/quests/alladdons.lua:14: in function (data/actions/scripts/quests/alladdons.lua:1)
thanks in advance!
Last edited by a moderator: