Ir para conteúdo

Pedro.

Membro
  • Registro em

  • Última visita

Tudo que Pedro. postou

  1. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    Up
  2. Pedro. postou uma resposta no tópico em Suporte Tibia OTServer
    bom, achei um script aqui mesmo no tk bem interessante de auto loot, eu já vi um para 1.0 porém não funciona, e tem que adicionar tag em todos monstros pra funcionar [tosco] Bom, eu modifiquei bastante coisas nesse script, algumas funções eu tive que adicionar no global etc, porém cheguei numa parte que não to conseguindo modificar, que é o addevent e o getcontaineriteminfo. Gostaria da ajuda dos pros ai script; creturescript; talkactions; TAGS; <talkaction words="!autoloot" separator=" " script="autoloot.lua" /> <event type="kill" name="AutoLoot" script="Autoloot.lua"/>
  3. desculpe pela demora, estava no quartel, testei aqui e funcionou perfeitamente, obrigado
  4. Olá, gostaria de uma ajudinha aqui, eu tenho um npc e não to conseguindo adicionar, um "back" para ele voltar para o templo. 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 local cfg = { toPos = {x=964, y=1025, z=14}, level = 1, Storage = 25747 } 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 player = Player(cid) if msgcontains(msg, 'bosses') then selfSay('There are some undead below, you agree to be teleported there?', cid) talkState[talkUser] = 1 elseif talkState[talkUser] == 1 then if msgcontains(msg, 'yes') then if player:getStorageValue(cfg.Storage) > 0 then selfSay('You\'ve done it.', cid) return FALSE end if getPlayerLevel(cid) >= cfg.level then doTeleportThing(cid, cfg.toPos) talkState[talkUser] = 0 else selfSay('Only players level ' ..cfg.level.. ' can pass.', cid) end end if msgcontains(msg, 'no') and talkState[talkUser] == 1 then selfSay('Okay, you\'re a smart and probably know the face of danger that exists there.', cid) talkState[talkUser] = 0 end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  5. Pedro. postou uma resposta no tópico em Monsters, NPC, Raids & Mounts
    ansioso, para alguém trazer para tfs 1.0, não tive sucesso ;/
  6. Pedro. postou uma resposta no tópico em Scripts tfs 0.4 (OLD)
    você da aula em lua, show de bola.
  7. Pedro. postou uma resposta no tópico em Sistemas, Mods & Funções .lua
    poderia funcionar pra tfs 1.0 +, testei aqui mas da uns erros de getplayer, dai fiz as alterações pelos nomes do tfs porém no final da DBUG ao castar a spell ;/
  8. Amigo, perdoe pela demora, tava de serviço no quartel. Então, eu testei aqui e realmente estava dando debug, eu tentei outras spells porém não tive sucesso. Sorry.
  9. Provavelmente você não colocou as credenciais corretas amigo. ;s
  10. tá normal, verifique se a senha, e a database que voce criou está igual na config.lua.
  11. vá em htdocs/config/config.php e poste aqui você criou a db e importou certinho no phpmyadmin?
  12. poste sua config.lua aqui para nós, em spoiler por favor.
  13. o que você postou é normal, voce tem que ir clicando menu por menu e ir instalando, se ocorrer algum error, poste aqui.
  14. já foi pedido esse script aqui antes, creio que ainda não há para tfs 0.4. Porém já vi para tfs 1.1 boa sorte
  15. escolha a melhor resposta para adicionar a tag de resolvido, obrigado.
  16. tente trocar seu lastenews, ou baixe uma versão mais atualizada do gesior. Dependendo da versão do seu tfs, se for 1.0 + baixe o 2012.
  17. tente modificar por este aqui, antes faça um backup;.
  18. você usa tfs 0.4 por favor, quando pedir um script especifique no topico. function onLogin(cid) local rate = 1.3 -- 30% -- porcentagem local config = { premium_true = "você tem "..((rate - 1)*100).."% de exp a mais agora!", -- Editar msg de exp extra premium premium_false = "Compre seus dias de VIP ACC e dispare no ranking.", -- Editar msg de não ser premium } if isPremium(cid) then doPlayerSetExperienceRate(cid, rate) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.premium_true) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, config.premium_false) end return true end ´ps: na hora de registrar na lua, coloque conforme os outros, pois é diferente.
  19. estranho, era pra funcionar. Vou testar aqui, jaja edito.
  20. só pegar o código em html no twitter, e adicionar em html.
  21. seu site tá on? manda ai e me mostre aonde ficar.
  22. eu uso e no meu servidor funciona normalmente, tente esse aqui. npc/scripts/ libs/killingInTheNameOfQuest.lua creaturescript/killingInTheNameOfQuestKills dofile('data/lib/killingInTheNameOfQuest.lua') function onKill(cid, target, lastHit) local started = getPlayerStartedTasks(cid) if isPlayer(target) or isSummon(target) then return true end if started and #started > 0 then for _, id in ipairs(started) do if isInArray(tasks[id].creatures, getCreatureName(target):lower()) then if getPlayerStorageValue(cid, KILLSSTORAGE_BASE + id) < tasks[id].killsRequired then setPlayerStorageValue(cid, KILLSSTORAGE_BASE + id, getPlayerStorageValue(cid, KILLSSTORAGE_BASE + id) + 1) end end end end return true end tag <event type="kill" name="killingInTheNameOfQuestKills" script="killingInTheNameOfQuestKills.lua"/>

Informação Importante

Confirmação de Termo