Thorn
Spriting since 2013
Hello guys, first i'm not sure of this has to be here or in request.
My server is otx 2.52 and version 9.83
this is the thing, i have this script
but i would like to add something where the player uses the item for the second time, it says something like sorry, you already have this mount, and the item doesn't dissapear (only in this situation)
i know i have to use storage, but how? i wish someone could tell me what to add and where
Thanks !
My server is otx 2.52 and version 9.83
this is the thing, i have this script
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if item.itemid == 13295 then
local pPos = getPlayerPosition(cid)
doSendMagicEffect(pPos, 50)
doPlayerAddMount(cid, 4)
doRemoveItem(item.uid, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You Have the Black Sheep mount!")
end
return TRUE
end
but i would like to add something where the player uses the item for the second time, it says something like sorry, you already have this mount, and the item doesn't dissapear (only in this situation)
i know i have to use storage, but how? i wish someone could tell me what to add and where
Thanks !