Create a file in "actions/scripts/tools" called "DracoyleStatue.lua" and paste :
DracoyleStatue.lua
Code:
local changeStatue = {
[9949] = {9948},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if changeStatue[itemEx.itemid] ~= nil then
local newId = changeStatue[itemEx.itemid][math.random(#changeStatue[itemEx.itemid])]
doTransformItem(itemEx.uid,newId)
doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"You change a "..getItemNameById(newId))
end
return FALSE
end
Now add this to actions.xml :
actions.xml
Code:
<action itemid="2149" event="script" value="tools/DracoyleStatue.lua"/>