Postado Março 13, 2017 8 anos Autor Em 13/03/2017 em 15:51, rogaforyn2 disse: ta aí, só demorou 5 anos REVERSE_DOORS, CHILD_DOORS = {}, {} for k, v in pairs(DOORS) do REVERSE_DOORS[v] = k local tmp = getItemInfo(v) if(tmp.transformUseTo ~= 0) then CHILD_DOORS[tmp.transformUseTo] = k end end function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.aid > 0 and itemEx.aid > 0) then if(isPlayerPzLocked(cid) and getTileInfo(toPosition).protection) then doPlayerSendDefaultCancel(cid, RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE) return true end local doors = DOORS[itemEx.itemid] if(not doors) then doors = REVERSE_DOORS[itemEx.itemid] end if(not doors) then doors = CHILD_DOORS[itemEx.itemid] end if(doors) then if(item.actionid ~= itemEx.actionid) then doPlayerSendCancel(cid, "The key does not match.") else if (getCreaturePosition(cid).x < getThingPos(item.uid).x) then doTeleportThing(cid, {x=getThingPos(item.uid).x+1, y=getThingPos(item.uid).y, z=getThingPos(item.uid).z}) doSendMagicEffect({x=getThingPos(item.uid).x+1, y=getThingPos(item.uid).y, z=getThingPos(item.uid).z}, CONST_ME_MAGIC_BLUE) else doTeleportThing(cid, {x=getThingPos(item.uid).x-1, y=getThingPos(item.uid).y, z=getThingPos(item.uid).z}) doSendMagicEffect({x=getThingPos(item.uid).x-1, y=getThingPos(item.uid).y, z=getThingPos(item.uid).z}, CONST_ME_MAGIC_BLUE) end end return true end end return false end Calcilda mano, eu nem sei porque queria isso, e nem sei porque criei este tópico e o intuito, faz tanto tempo.. KKKK Mas valeu, hoje já conseguiria fazer isso, mas não há utilidade ._. AHAUHAUHA Mas valeu, o importante é ajudar. PS: Cinco anos foi foda. KKKKKKKKKKKKKKKKKKKKK Editado Março 13, 2017 8 anos por Eduardo Dantas (veja o histórico de edições)
Postado Março 13, 2017 8 anos kkkkkkkkkkk nem sei se isso aí funciona porque não tem o y Life is so meaningless, there is nothing worth a smile So goodbye, I'll miss you sugestões?
Postado Março 13, 2017 8 anos Autor Eu acho que esse script é tão antigo, que nem funciona mais nos tfs de hoje. KKKKKKKK
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.