Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function changeBack(pos)
- doTransformItem(getTileItemById(pos, 22026).uid, 22435)
- return true
- end
- local function changeBackk(pos)
- doTransformItem(getTileItemById(pos, 22103).uid, 22437)
- return true
- end
- local function changeBackk(pos)
- doTransformItem(getTileItemById(pos, 22253).uid, 22434)
- return true
- end
- local function changeBackk(pos)
- doTransformItem(getTileItemById(pos, 22101).uid, 22438)
- return true
- end
- local function changeBackk(pos)
- doTransformItem(getTileItemById(pos, 22104).uid, 22439)
- return true
- end
- local function changeBackk(pos)
- doTransformItem(getTileItemById(pos, 22105).uid, 22440)
- return true
- end
- local function changeBackk(pos)
- doTransformItem(getTileItemById(pos, 22102).uid, 22441)
- return true
- end
- local function changeBackk(pos)
- doTransformItem(getTileItemById(pos, 22075).uid, 22436)
- return true
- end
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- if(item.itemid == 22435) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22026)
- addEvent(changeBack, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- elseif(item.itemid == 22437) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22103)
- addEvent(changeBack, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- elseif(item.itemid == 22434) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22253)
- addEvent(changeBack, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- elseif(item.itemid == 22433) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22253)
- addEvent(changeBack, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- elseif(item.itemid == 22434) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22253)
- addEvent(changeBack, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- elseif(item.itemid == 22438) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22101)
- addEvent(changeBack, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- elseif(item.itemid == 22439) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22104)
- addEvent(changeBack, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- elseif(item.itemid == 22439) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22104)
- addEvent(changeBack, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- elseif(item.itemid == 22440) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22105)
- addEvent(changeBack, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- elseif(item.itemid == 22441) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22102)
- addEvent(changeBack, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- elseif(item.itemid == 22436) and(getPlayerStorageValue(cid, 8600) == 1) then
- doTransformItem(item.uid, 22075)
- addEvent(changeBackk, 300 * 60 * 1000, toPosition)
- random = math.random(1, 6)
- if(random == 1) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You found a broken dream.")
- doPlayerAddItem(cid, 22363, 1)
- elseif(random == 2) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You poke into the thing, but there's only some rubbish inside.")
- doPlayerAddItem(cid, 2225, 1)
- elseif(random == 3) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "A twig dropped out of the cypress. It's rubbish.")
- doPlayerAddItem(cid, 2221, 1)
- elseif(random == 4) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shook some leaves off the cypress. They're rubbish.")
- doPlayerAddItem(cid, 2244, 1)
- elseif(random >= 5) then
- doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You shake out the glowing contents, but it's only dew and rubbish")
- doPlayerAddItem(cid, 18554, 1)
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement