Ir para conteúdo

zipter98

Herói
  • Total de itens

    2553
  • Registro em

  • Última visita

  • Dias Ganhos

    73

Tudo que zipter98 postou

  1. @chulapo Se possível, relate se a dúvida foi ou não sanada.
  2. local configuration = { storage = 918311, fly_storage = 17000, --Storage do Fly no seu servidor. } local a = 0 function isWalkable(pos)-- by Nord / editado por Omega if isCreature(getTopCreature(pos).uid) then return false elseif getTileInfo(pos).protection then return false else if getTileThingByPos({x = pos.x, y = pos.y, z = pos.z, stackpos = 0}).itemid ~= 0 then if hasProperty(getThingFromPos(pos).uid, 3) or hasProperty(getThingFromPos(pos).uid, 7) then return false end end end return true end function autoWalk(cid, id) if not isCreature(cid) then if id then return db.executeQuery("UPDATE player_storage SET value = -1 WHERE key = 918311 AND player_id = "..id) end elseif getPlayerStorageValue(cid, configuration.storage) < 1 then return true end local tab = { [0] = {x = getThingPos(cid).x, y = getThingPos(cid).y - 1, z = getThingPos(cid).z}, [1] = {x = getThingPos(cid).x + 1, y = getThingPos(cid).y, z = getThingPos(cid).z}, [2] = {x = getThingPos(cid).x, y = getThingPos(cid).y + 1, z = getThingPos(cid).z}, [3] = {x = getThingPos(cid).x - 1, y = getThingPos(cid).y, z = getThingPos(cid).z}, } local lookdir = getCreatureLookDir(cid) local topos = tab[lookdir] if getPlayerStorageValue(cid, configuration.storage) < 1 or getPlayerStorageValue(cid, configuration.fly_storage) < 1 then if getPlayerStorageValue(cid, configuration.fly_storage) < 1 then setPlayerStorageValue(cid, configuration.storage, -1) end return true elseif isWalkable(topos) then if getTileThingByPos({x = topos.x, y = topos.y, z = topos.z, stackpos = 0}).itemid == 0 then doCombatAreaHealth(cid, 0, topos, 0, 0, 0, CONST_ME_NONE) doCreateItem(11676, 1, topos) end doTeleportThing(cid, topos) a = a + 1 else setPlayerStorageValue(cid, configuration.storage, -1) doPlayerSendTextMessage(cid, 27, "Há algum objeto à sua frente impedindo a passagem.") return true end addEvent(autoWalk, 500, cid, id) end function onSay(cid, words) if getPlayerStorageValue(cid, configuration.fly_storage) < 1 then return doPlayerSendCancel(cid, "Para usar este comando, você deve estar em Fly.") elseif getPlayerStorageValue(cid, configuration.storage) >= 1 then return setPlayerStorageValue(cid, configuration.storage, -1) and doPlayerSendTextMessage(cid, 27, "Comando !fly desativado.") else doPlayerSendTextMessage(cid, 27, "Comando !fly ativado.") setPlayerStorageValue(cid, configuration.storage, 1) autoWalk(cid, getPlayerGUID(cid)) end return true end E pelo que sei, não.
  3. O título de seu tópico está fora das regras. Este deve apresentar, resumidamente, seu pedido e/ou dúvida. Desta vez, alterei para você. Espero que tal erro não aconteça novamente.
  4. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  5. function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true else if getPlayerLevel(cid) <= 210000 then doTeleportThing(cid, fromPosition) doPlayerSendTextMessage(cid, 22, "voce nao e nivel maior que 210000 e nao pode entrar") doSendMagicEffect(fromPosition, CONST_ME_POFF) return true end end return true end
  6. Movido para derivados (já que o pedido é relacionado à servidores de pokémon).
  7. local ids = {...} --Coloque o ID das vocations nesta tabela. local id = {6022, 2154} function onUse(cid, item, frompos, item2, topos) if isInArray(ids, getPlayerVocation(cid)) and item2.itemid == id[1] then doRemoveItem(item.uid, 1) doRemoveItem(item2.uid, 1) doPlayerAddItem(cid, id[2], 1) else return doPlayerSendCancel(cid, "Você não pertence à uma das vocações adequadas, ou está usando o pergaminho no item errado.") end return true end
  8. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  9. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  10. zipter98

    Script Vip Area

    Tópico movido para a seção de dúvidas e pedidos resolvidos.
  11. zipter98

    Text-Border - OTC

    Sanado, movido.
  12. Área incorreta, tópico movido. Mais cuidado da próxima vez.
  13. Movido para pedidos e dúvidas.
  14. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  15. Sanado, movido.
  16. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  17. Saberia dizer se nos arquivos getso.lua e fightMode.lua está sendo retornado true (return true)?
  18. Esse primeiro "problema" que você mencionou, é provavelmente (ou melhor, certeza) um creaturescript. Dá uma olhada nos arquivos de data/creaturescripts/scripts.
  19. Área incorreta, tópico movido. Mais cuidado da próxima vez. PS: Lhe recomendaria usar [.spoiler]conteúdo[./spoiler], sem os pontos, ao enviar códigos grandes como este.
  20. Área incorreta, tópico movido. Mais cuidado da próxima vez.
  21. Pode mandar seu talkactions.xml?
  22. Vou entender "ata vlw agora entende" por "dúvida sanada, podem mover para resolvidos.".
  23. Tópico movido para a seção de dúvidas e pedidos resolvidos.
  24. Sabe fazer o .xml? local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local storagesDuel = {52480, 52481, 52482, 52482, 52483, 52484, 52485, 6598754} local t = {} if msgcontains(msg:lower(), "storage") or msgcontains(msg:lower(), "remove") then for storage = 1, #storagesDuel do if getPlayerStorageValue(cid, storagesDuel[storage]) > -1 then table.insert(t, storagesDuel[storage]) end end if #t < 1 then selfSay("O valor de todas as storages de Duel no seu personagem é -1.", cid) talkState[talkUser] = 0 return true else selfSay("Storages removidas.", cid) for i = 1, #t do setPlayerStorageValue(cid, t[i], -1) end talkState[talkUser] = 0 return true end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...