Postado Julho 15, 2014 10 anos ESSE ERRO TÁ ME INFERNIZANDO [Error - Action Interface] data/actions/scripts/destroyfield.lua:onUse Description: (luaGetThingFromPosition) Tile not found Eu ja fiz de tudo e nao consigo tirar..
Postado Julho 15, 2014 10 anos Adicione o script com spoiler, assim fica mais fácil ajudar. O tópico foi movido para a área correta, preste mais atenção da próxima vez!Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido:De: "OTServ → Scripting → Actions e TalkActions"Para: "OTServ → Suporte OTServ → Suporte de Scripts"
Postado Julho 15, 2014 10 anos Eu já falei pra esse cara que destroyfield é runa, ou seja, ta em spells, LOL!
Postado Julho 27, 2014 10 anos Autor Não é spells amigo. TÁ AI O SCRIPT ALGUEM SABE ARRUMAR? function onUse(cid, item, frompos, item2, topos) fieldpos = topos fieldpos.stackpos = 254 fielditem = getThingfromPos(fieldpos) if getPlayerMagLevel(cid) >= 3 then if fielditem.itemid > 0 and fielditem.itemid ~= 1497 and fielditem.itemid ~= 1498 then doSendMagicEffect(topos,2) doRemoveItem(fielditem.uid,1) if item.type > 1 then doChangeTypeItem(item.uid,item.type-1) else doRemoveItem(item.uid,1) end else doSendMagicEffect(frompos,2) return 0 end else doSendMagicEffect(frompos,2) doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.") end return 1 end
Postado Julho 27, 2014 10 anos Solução Eu já tive esse problema ( besta ) e não lembro como resolvi, mas no meu ot a mesma runa tá com o script assim : Citar UNREMOVABLE_FIELDS = {1497, 1498, 1499, 1505, 1506, 1507, 1508, 7465, 7466, 7467, 7468, 7469, 7470, 7471, 7472, 7473, 11094, 11095} local function doRemoveField(cid, pos) local field = getTileItemByType(pos, ITEM_TYPE_MAGICFIELD) if(not isInArray(UNREMOVABLE_FIELDS, field.itemid)) then doRemoveItem(field.uid) doSendMagicEffect(pos, CONST_ME_POFF) return true end doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return false end function onCastSpell(cid, var) local pos = variantToPosition(var) if(pos.x == CONTAINER_POSITION) then pos = getThingPos(cid) end if(pos.x ~= 0 and pos.y ~= 0) then return doRemoveField(cid, pos) end doPlayerSendDefaultCancel(cid, RETURNVALUE_NOTPOSSIBLE) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) return false end Testa aí pra ver.
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.