OTcreator
Active Member
- Joined
- Feb 14, 2022
- Messages
- 425
- Solutions
- 1
- Reaction score
- 44
Hello!
I try change scripts from 0.3.7 to 1.4.2 and i work hard.
But i have problem with this one. @Evil Puncker can you help me please <3
I try change scripts from 0.3.7 to 1.4.2 and i work hard.
But i have problem with this one. @Evil Puncker can you help me please <3
Lua:
local transformToItem = 3338
local previousItem = 2797
function onUse(cid, item, fromPosition, itemEx, toPosition)
if itemEx.actionid == 2718 and getPlayerStorageValue(cid, 1494) < 1 then
setPlayerStorageValue(cid,1494,1)
doRemoveItem(item.uid)
doCreatureSay(cid, "Stones crash...", TALKTYPE_ORANGE_1, false, cid)
doTransformItem(itemEx.uid, transformToItem)
addEvent(
function()
doTransformItem(getThingfromPos(toPosition).uid, previousItem)
end,
30 * 1000
)
elseif itemEx.actionid == 2718 and getPlayerStorageValue(cid, 1494) >= 1 then
doCreatureSay(cid, "You already crash that stones!", TALKTYPE_ORANGE_1, false, cid)
else
doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE)
end
return true
end