Postado Dezembro 29, 2013 11 anos Autor Galera da uma ajuda.. tentei fazer a 1º parte q eh colokar os itens nos basins e dar use no skeleton decoration para os itens sumirem, transformar os basins nas torres de ossos e o skeleton decoration se transformar em dead skeleton no chao.. function onUse(cid, item, fromPosition, itemEx, toPosition) squeletopos = {x=1891, y=792, z=7, stackpos=255} squeleto = getThingfromPos(squeletopos) local skellpos1 = {x=1891, y=793, z=7, stackpos=1} --- coordinates of the wall to be removed --- local skell1 = getThingfromPos(skellpos1) local skellID = 2843 --- item id of the wall to be removed --- coalbasin1 = {x=1887, y=793, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin2 = {x=1887, y=795, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin3 = {x=1887, y=797, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin4 = {x=1895, y=793, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin5 = {x=1895, y=795, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin6 = {x=1895, y=797, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin7 = {x=1891, y=799, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} item1 = getThingFromPos(coalbasin1) item2 = getThingFromPos(coalbasin2) item3 = getThingFromPos(coalbasin3) item4 = getThingFromPos(coalbasin4) item5 = getThingFromPos(coalbasin4) item6 = getThingFromPos(coalbasin4) item7 = getThingFromPos(coalbasin4) end if item.itemid == 6524 and beforepos.x == 1891 and beforepos.y == 792 and beforepos.z == 7 then if item1.itemid ==2337 and item2.itemid == 2339 and item3.itemid == 2341 and item4.itemid == 2338 and item5.itemid == 2340 and item6.itemid == 2336 and item7.itemid == 2335 then doRemoveItem(item1.uid) doTransformItem(coalbasin1, 6972, 1) doRemoveItem(item2.uid) doTransformItem(coalbasin2, 6972, 1) doRemoveItem(item3.uid) doTransformItem(coalbasin3, 6972, 1) doRemoveItem(item4.uid) doTransformItem(coalbasin4, 6972, 1) doRemoveItem(item5.uid) doTransformItem(coalbasin5, 6972, 1) doRemoveItem(item6.uid) doTransformItem(coalbasin6, 6972, 1) doRemoveItem(item7.uid) doTransformItem(coalbasin7, 6972, 1) doSendMagicEffect(squeletopos,2) doRemoveItem(squeleto.uid,1) doCreateItem(skellID, toPos, skelllpos1) end return FALSE end return TRUE end end mas clico no skeleton decoration nao acontece nada e a distro aparece esse erro qndo inicia o servidor [4:41:25.811] [Error - LuaInterface::loadFile] data/actions/scripts/serversavequest/tributeboos.lua:48: '<eof>' expected near 'end' [4:41:25.823] [Warning - Event::loadScript] Cannot load script (data/actions/scripts/serversavequest/tributeboos.lua) [4:41:25.823] data/actions/scripts/serversavequest/tributeboos.lua:48: '<eof>' expected near 'end' oque eu foz de errado...? RESOLVI UMA PARTE... agora se clik no skeleton decoration ele some e fas o efeito puff porem nao cria o skeleton dead no chao.. e os itens nao somem nem os basins mudam e aparece a mensagem: 05:56 precisa dos tributos que era pra aparecer caso os tributos nao estivessem nos basins aparece ese erro na distro [5:56:24.255] [Error - Action Interface] [5:56:24.261] data/actions/scripts/serversavequest/tributeboos.lua:onUse [5:56:24.262] Description: [5:56:24.264] (luaDoCreateItem) Tile not found Codigo atualizado ate o momento: function onUse(cid, item, fromPosition, itemEx, toPosition) squeletopos = {x=1891, y=792, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} squeleto = getThingfromPos(squeletopos) local skID = 6524 --- item id of the wall to be removed --- local skellpos1 = {x=1891, y=793, z=7} --- coordinates of the wall to be removed --- local skell1 = getThingfromPos(skellpos1) local skellID = 2843 --- item id of the wall to be removed --- coalbasin1 = {x=1887, y=793, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin2 = {x=1887, y=795, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin3 = {x=1887, y=797, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin4 = {x=1895, y=793, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin5 = {x=1895, y=795, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin6 = {x=1895, y=797, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} coalbasin7 = {x=1891, y=799, z=7, stackpos=STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE} item1 = getThingFromPos(coalbasin1) item2 = getThingFromPos(coalbasin2) item3 = getThingFromPos(coalbasin3) item4 = getThingFromPos(coalbasin4) item5 = getThingFromPos(coalbasin4) item6 = getThingFromPos(coalbasin4) item7 = getThingFromPos(coalbasin4) if item.uid == 20020 then doRemoveItem(item.uid, 1) doSendMagicEffect(squeletopos,2) doCreateItem(skellID, skelllpos1, skell1) if item1.itemid == 2337 and item2.itemid == 2339 and item3.itemid == 2341 and item4.itemid == 2338 and item5.itemid == 2340 and item6.itemid == 2336 and item7.itemid == 2335 then doRemoveItem(item1.uid) doTransformItem(coalbasin1, 6972, 1) doRemoveItem(item2.uid) doTransformItem(coalbasin2, 6972, 1) doRemoveItem(item3.uid) doTransformItem(coalbasin3, 6972, 1) doRemoveItem(item4.uid) doTransformItem(coalbasin4, 6972, 1) doRemoveItem(item5.uid) doTransformItem(coalbasin5, 6972, 1) doRemoveItem(item6.uid) doTransformItem(coalbasin6, 6972, 1) doRemoveItem(item7.uid) doTransformItem(coalbasin7, 6972, 1) else doPlayerSendTextMessage(cid, 22, "precisa dos tributos") end else return 0 end return 1 end Editado Dezembro 29, 2013 11 anos por larafaz (veja o histórico de edições)
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.