Ir para conteúdo

Luccan Medeiros

Membro
  • Registro em

  • Última visita

Tudo que Luccan Medeiros postou

  1. Alguem aki tem ideia em qual parte das Source fica a funçao que permite atravessar players em protection zone
  2. Luccan Medeiros postou uma resposta no tópico em Suporte Tibia OTServer
    precisava de ajuda com essa spell, ela esta atravessando paredes precisava q n atravessa nada local function isWalkable(pos, creatures) local tile = Tile(pos) if (creatures and tile:getCreatureCount() > 0) or tile:hasFlag(TILESTATE_BLOCKSOLID) then return false end return true end function onCastSpell(creature, var) local steps, pos = 4, creature:getPosition() pos:sendMagicEffect(CONST_ME_POFF) for x = 1, steps do position = creature:getPosition() position:getNextPosition(creature:getDirection(), x) position = creature:getClosestFreePosition(position, false) if position.x == 0 or not isWalkable(position, x == steps and true or false) then creature:sendCancelMessage("You failed to jump, there is something blocking.") return false end end creature:teleportTo(position) pos:sendMagicEffect(CONST_ME_THUNDER) position:sendMagicEffect(CONST_ME_THUNDER) return true end
  3. alguem poderia dar uma força nesse script, a ideia é passar pela porta se o player estiver em cima da montaria, mas o script esta deixando passar msm se n tiver usando a montaria function onUse(cid, item, fromPosition, itemEx, toPosition) if(item.uid == 2217) then if getPlayerMount(cid, 13) then if(item.itemid == 6208) then doTeleportThing(cid, toPosition, true) doTransformItem(item.uid, 6209) end else doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "The door seems to be sealed against unwanted intruders.") end end return true end
  4. todas as distros deles sao tiradas das comunidades que voce mesmo pode baixar, e todas tem diversos bugs
  5. alguém podeira dar uma força nesse script, que remove o actionid do teleport depois de 10 segundos function onUse(cid, item, fromPosition, itemEx, toPosition) local stonePosition = Position(5981, 465, 9) local stoneItem = Tile(stonePosition):getItemById(1756) if stoneItem then stoneItem:remove() end local teleportExists = Tile(stonePosition):getItemById(1756) if not teleportExists then local newItem = Game.createItem(1756, 1, stonePosition) if newItem then newItem:setActionId(33158) end end return true end
  6. sao 3 tipos de estatuas, as alavacas"1945" na frente das estatuas de dragon serve para mudar o tipo da estauta, eu precisava que quando estiver na ordem certa a alavanca"9825" abra o portaoo
  7. opaa, precisava de uma força com um script para meu tfs 1.2 com que o portao so abra se as estatuas estiverem na ordem certa que nem na foto abaixo tentei a semana toda fazer sozinho pfv me ajudem
  8. eu precisava de ajuda com esse script que abre uma entrada para hunt, mas que o scroll so funcione perto da entrada esse é o script q eu criei n da erro nenhum mais n funciona local config = { {fromPos = Position(5712, 5851, 7), toPos = Position(5718, 5857, 7)} } local stairsPosition = Position(33273, 32458, 8) local function revertStairs() local stairsItem = Tile(stairsPosition):getItemById(3220) if stairsItem then stairsItem:transform(7062) end end function onUse(player, item, fromPosition, target, toPosition, isHotkey) local playerPos, range = player:getPosition(), false for i = 1, #config do range = config[i] if isInRange(playerPos, range.fromPos, range.toPos) then break end end if not range then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'You not this in range.') return true end local stairsItem = Tile(stairsPosition):getItemById(7062) if stairsItem then stairsItem:transform(3220) addEvent(revertStairs, 2 * 60 * 1000) end return true end as imagens ilustrativa do que aconteceria assim qnd a entrada esta fechado e assim quando é usado o scroll ela fica aberto mas q o scroll so funcione dentro dessa area
  9. lookType= 267
  10. ae agr foi, kkkk como pode coisinha de nada e o script n funcionar
  11. nao funciona e n da nenhum erro no console, meu tfs 1.2
  12. alguem poderia dar uma força nesse script para door q so pode entrar se o player estiver com a looktype 43 q é de uma scorpion function onUse(cid, item, fromPosition, itemEx, toPosition) local p = Player(cid) local c = Creature(cid) local i = Item(item.uid) if(item.uid == 2216) then if(getCreatureOutfit(cid, 43) > 1) then if(item.itemid == 5114) then doTeleportThing(cid, toPosition, true) doTransformItem(item.uid, 5115) end else p:sendTextMessage(MESSAGE_INFO_DESCR, "This door seems to be sealed against unwanted intruders.") end end return true end
  13. toda vez q alguem pisar mais de uma vez em cima do tile cria um tp, se ficar passando em cima 100x vai criar 100 tps
  14. tipo com fazer para q n crie um tp em cima do outro
  15. opa precisava de ajdua pra modificar essa spell para q so funcione se estiver usando shield local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0) local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_TICKS, 120000) condition:setParameter(CONDITION_PARAM_SUBID, 116) combat:setCondition(condition) function onCastSpell(creature, var) local player = Player(creature) if player then setPlayerStorageValue(player.uid, 5, 25) addEvent(setPlayerStorageValue, 120 * 1000, player.uid, 5, 0) end combat:execute(creature, var) creature:sendTextMessage(MESSAGE_INFO_DESCR, "Aura reflect started!") addEvent(function() if player then creature:sendTextMessage(MESSAGE_INFO_DESCR, "Aura reflect ended!") end end, 120*1000) return true end
  16. vlw mano, tava quebrando a cabeça com esse script
  17. Opaa precisava de um script, qual um player pisa em um tile cria um teleport em X lugar e que o teleport leve em Y lugar e depois de 3 minutos esse teleport some
  18. é o ultimo recurso e q eu procuro depois de tentar milhares de vezes :s
  19. olaa, eu sei q é chato pedir isso aki no forum, mas eu precisava de alguem q manja de programaçao para tfs 1.2 para criar o attibuto attackfast qualquer coisa meu contato: skype @luccan.medeiros ou whatsapp 19 98178-3693
  20. crie um arquivo.lua na pasta actions com esse script local text = "texto que voce quer colocar." function onUse(cid, item, fromPosition, itemEx, toPosition) doShowTextDialog(cid, item.itemid, text) return true end adicione a tag no action.xml <action itemid="IDDOITEM" script="nomedoarquivo.lua"/> e por ultimo procure na pasta do creaturescripts o arquivo firstitems.lua do seu otserver e adicione o id do item escolhido
  21. assim? local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0) local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_TICKS, 120000) condition:setParameter(CONDITION_PARAM_SUBID, 116) condition:setParameter(CONDITION_PARAM_BUFF_SPELL, 1) combat:setCondition(condition) function onCastSpell(creature, var) local player = Player(creature) if player then setPlayerStorageValue(player.uid, 5, 25) addEvent(setPlayerStorageValue, 120 * 1000, player.uid, 5, 0) end combat:execute(creature, var) creature:sendTextMessage(MESSAGE_INFO_DESCR, "Aura reflect started!") addEvent(function() if player then creature:sendTextMessage(MESSAGE_INFO_DESCR, "Guard ended!") end, 0000) return true end dando esse erro unexpected symbol near ','
  22. opaa, precisava de uma ajuda nessa spell, colocar uma msg -sendTextMessage(MESSAGE_INFO_DESCR, "Guard ended!") assim q o tempo da spell terminasse local combat = Combat() combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN) combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0) local condition = Condition(CONDITION_ATTRIBUTES) condition:setParameter(CONDITION_PARAM_TICKS, 180000) condition:setParameter(CONDITION_PARAM_BUFF_SPELL, 1) combat:setCondition(condition) function onCastSpell(creature, var) local player = Player(creature) if player then setPlayerStorageValue(player.uid, 45555, 15) addEvent(setPlayerStorageValue, 180 * 1000, player.uid, 45555, 0) end combat:execute(creature, var) creature:sendTextMessage(MESSAGE_INFO_DESCR, "Guard started!") return true end
  23. ja arrumei 21:50 You see demon legs (Arm:9). It weighs 70.00 oz. ficando assim 21:50 You see BLESSED demon legs (Arm:9).
  24. Luccan Medeiros postou uma resposta no tópico em Suporte Tibia OTServer
    se voce abriu o world correto, vai salvar no world q vc abriu

Informação Importante

Confirmação de Termo