Don't are working.
The server don't is TFS.
Script:
The server don't is TFS.
Script:
PHP:
--Nightmare_addon by BomBa
function onUse(cid, item, frompos, item2, topos)
if item.uid == 3090 then
if doPlayerRemoveItem(cid,5791,1) == 0 or getPlayerStorageValue(cid,3090) == -1 or doPlayerRemoveItem(cid,2160,20) == 0 then
if getPlayerSex(cid) == 0 then
doPlayerAddAddon(cid, 269, 2)
local queststatus = getPlayerStorageValue(cid,3090)
if queststatus < 1 then
setPlayerStorageValue(cid, 3090, 1)
doPlayerAddItem(cid,6391,1)
else
doPlayerAddAddon(cid, 268, 2)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found an addon.')
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
end
end
end
end
Last edited: