Hello guys!
I wonder what I am wrong in this script, TFS 0.4_3884 use.
Thank you in advance !!
I wonder what I am wrong in this script, TFS 0.4_3884 use.
Thank you in advance !!
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.actionid == 18898 then
if getPlayerStorageValue(cid, 1889) == 19 then
if fromPosition.x == CONTAINER_POSITION then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_EXPLOSIONHIT)
doPlayerRemoveItem(cid, 7488, 1)
setPlayerStorageValue(cid, 1889, 20)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need hold the item on you.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You arent a inquisition member")
end
end
return TRUE
end