Hello, this is my piece of code
here is how I added it to actions.xml
And when I click on the item with uniqueid 4444 I got this in console
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, 4444)==1 then
doPlayerSendCancel(cid,"You already done that quest.")
else
setPlayerStorageValue(cid, 4444, 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Now you can enter to the lower floor respawn.")
end
return true
end
here is how I added it to actions.xml
PHP:
<action uniqueid="4444" script="karamba/skrzyniagsy.lua" />
And when I click on the item with uniqueid 4444 I got this in console