pitis91/FORGOTTENSERVER-ORTS — pull request #1 by pitis91 (2014-05-14 19:03:14+00:00)
Title: full firebug functions

function onUse(cid, item, fromPosition, itemEx, toPosition)
local item = Item(item.uid)
local itemTarget = Item(itemEx.uid)

if itemEx.uid == 2243 then --Dreamer Challenge Quest
itemTarget:transform(1387)
toPosition:sendMagicEffect(CONST_ME_FIREAREA)
end

if itemEx.itemid == 5466 then --Burn Sugar Cane
toPosition:sendMagicEffect(4)
itemTarget:transform(5465)
itemTarget:decay()
end

if itemEx.itemid == 1485 then --Fill Empty Coal Basin (green)
toPosition:sendMagicEffect(4)
itemTarget:transform(1484)
itemTarget:decay()
end

if itemEx.itemid == 2605 then --Fill Empty Coal Basin (yellow)
toPosition:sendMagicEffect(4)
itemTarget:transform(2604)
itemTarget:decay()
end

if itemEx.itemid == 7538 then --Destroy spider webs/North - South
toPosition:sendMagicEffect(CONST_ME_HITBYFIRE)
itemTarget:transform(7544)
itemTarget:decay()
elseif itemEx.itemid == 7539 then --Destroy spider webs/EAST- West
toPosition:sendMagicEffect(CONST_ME_HITBYFIRE)
itemTarget:transform(7545)
itemTarget:decay()
end
return true
end