Hey guys! I've been having this problem with my quest actions, I am using rme map editor and have set the actionid to 2000 and adding a unique id to something around 60000. The system.lua loads up fine but when i use a 1 access character it just opens the chest and the quest item is visible and able to be taken out without copying at all. Making the quest only available to one individual. I'll post my systems.lua, maybe i wrote the script up all wrong haha! :blink:
Kind regards,
Devin
Kind regards,
Devin
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 2000 then
queststatus = getPlayerStorageValue(cid, uid)== -1 then
setPlayerStorageValue(cid, uid, 1)
doPlayerAddItem(cid, item.uid, 1)
doPlayerSendTextMessage(cid, 22, 'You have found ---.')
elseif getPlayerStorageValue(cid, uid) == 1 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "YOU ALREADY GOT THIS SH*T! DUHH!!")
return true
end
end
Last edited: