function Glllobe()
item1 = getTileItemById(glo,9767)
doSetItemActionId(item1.uid, 58261)
end
if item.actionid == 58261 then
doSetItemActionId(item.uid, 58263)
addEvent(Glllobe, 900000)
elseif item.actionid == 58263 then
doCreatureSay(cid, "You have to wait some time before this globe will charge.", TALKTYPE_ORANGE_1)
end
function onUse(cid, item, frompos, item2, topos)
piece1pos = {x=32876, y=32583, z=10, stackpos=1}
getpiece1 = getThingfromPos(piece1pos)
if getpiece1.itemid == 1946 then
doRemoveItem(getpiece1.uid,1)
doSendMagicEffect(piece1pos,23)
addEvent(wait1,1000,piece1pos)
end
return 1
end
function wait1(piece1pos)
doCreateItem(1946,1,piece1pos)
end