Hello i need some help.
I need to create second mission for postman quest.
In this mission you need to use crowbar on mailbox and u need to add storage id
i scripted this
But i need to check if player is using crowbar on specified localisation for example Position: [X: 32013] [Y: 31562] [Z: 4].
Can someone help me with this?
I need to create second mission for postman quest.
In this mission you need to use crowbar on mailbox and u need to add storage id
i scripted this
Code:
local storage = 9999
local getstorage = getPlayerStorageValue(cid, storage)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(itemEx.itemid == 2593 and getstorage == 3) then
doSendMagicEffect(toPosition, CONST_ME_BLOCKHIT)
setPlayerStorageValue(cid, storage, 4)
return true
end
return false
end
Can someone help me with this?