Ir para conteúdo

Qwizer

Héroi
  • Registro em

  • Última visita

Tudo que Qwizer postou

  1. ainda não to desde ontem tentando fazer um mais não ta dando certo você fala ele vende o item local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) -- OTServ event handling functions start 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 -- OTServ event handling functions end function creatureSayCallback(cid, type, msg) if getPlayerStorageValue(cid, 1038) == 1 then local shopModule = ShopModule:new() npcHandler:addModule(shopModule) shopModule:addSellableItem({'might ring'}, 2164, 250, 'might ring') shopModule:addSellableItem({'energy ring'}, 2167, 100, 'energy ring') shopModule:addSellableItem({'life ring'}, 2168, 50, 'life ring') shopModule:addSellableItem({'time ring'}, 2169, 100, 'time ring') shopModule:addSellableItem({'dwarven ring'}, 2213, 100, 'dwarven ring') shopModule:addSellableItem({'ring of healing'}, 2214, 100, 'ring of healing') shopModule:addSellableItem({'strange talisman'}, 2161, 30, 'strange talisman') shopModule:addSellableItem({'silver amulet'}, 2170, 50, 'silver amulet') shopModule:addSellableItem({'protection amulet'}, 2200, 100, 'protection amulet') shopModule:addSellableItem({'dragon necklace'}, 2201, 100, 'dragon necklace') shopModule:addSellableItem({'snakebite rod'}, 2182, 100, 'snakebite rod') shopModule:addSellableItem({'moonlight rod'}, 2186, 200, 'moonlight rod') shopModule:addSellableItem({'volcanic rod'}, 2185, 1000, 'volcanic rod') shopModule:addSellableItem({'quagmire rod'}, 2181, 2000, 'quagmire rod') shopModule:addSellableItem({'tempest rod'}, 2183, 3000, 'tempest rod') shopModule:addSellableItem({'ankh'}, 2193, 100, 'ankh') shopModule:addSellableItem({'mysterious fetish'}, 2194, 50, 'mysterious fetish') shopModule:addBuyableItem({'might ring'}, 2164, 5000, 'might ring') shopModule:addBuyableItem({'energy ring'}, 2167, 2000, 'energy ring') shopModule:addBuyableItem({'life ring'}, 2168, 900, 'life ring') shopModule:addBuyableItem({'time ring'}, 2169, 2000, 'time ring') shopModule:addBuyableItem({'dwarven ring'}, 2213, 2000, 'dwarven ring') shopModule:addBuyableItem({'ring of healing'}, 2214, 2000, 'ring of healing') shopModule:addBuyableItem({'strange talisman'}, 2161, 100, 'strange talisman') shopModule:addBuyableItem({'silver amulet'}, 2170, 100, 'silver amulet') shopModule:addBuyableItem({'protection amulet'}, 2200, 700, 'protection amulet') shopModule:addBuyableItem({'dragon necklace'}, 2201, 1000, 'dragon necklace') else npcHandler:say("Voce nao tem permissao.") return true end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) assim nao funciona nen a pal
  2. vou testar mais esta bem confuso se aparecer um mais organizado agradeço e de fácil configuração; alguma outra opção de script? gente mais ninguém? ajudo todo mundo quando eu preciso ninguém aparece?
  3. com o o titulo ja diz queria um npc que venda vários items para quem tiver completado a quest. Djins do global pra tfs 0.4/0.3
  4. Qwizer postou uma resposta no tópico em Suporte Tibia OTServer
    vai no config.lua monsterLootMessage = e coloca 3 deixando assim: monsterLootMessage = 3
  5. Qwizer postou uma resposta no tópico em Suporte Tibia OTServer
    esqueci desse detalhe rsrs
  6. Qwizer postou uma resposta no tópico em Suporte Tibia OTServer
    sim, no caso voce teria que fazer assim function onSay(cid, param, channel) local money == 10000 local moneyk == 2165 local storage == 12655 if getPlayerStorageValue(cid, storage) <= 0 then if doPlayerRemoveMoney(cid,money) then setPlayerStorageValue(cid, storage,1) doPlayerAddItem(cid,moneyk,5) doPlayerSendTextMessage(cid,19,"voce fez uma boa troca.") doSendMagicEffect(cid,15) else doPlayerSendTextMessage(cid,19,"Você ñ tem item.") end else doPlayerSendTextMessage(cid,19,"Voce ja trocou seu item.") end return true end dei uma melhorada nele mais não testei se der algum erro só falar, baixe o anexo. FUNCTIONS e exemplos.rar
  7. Qwizer postou uma resposta no tópico em Suporte Tibia OTServer
    sim, no caso voce teria que fazer assim function onSay(cid, param, channel) local money == 10000 local moneyk == 2165 local storage == 12655 if getPlayerStorageValue(cid, storage) <= 0 then if doPlayerRemoveMoney(cid,money) then setPlayerStorageValue(cid, storage,1) doPlayerAddItem(cid,moneyk,5) doPlayerSendTextMessage(cid,19,"voce fez uma boa troca.") doSendMagicEffect(cid,15) else doPlayerSendTextMessage(cid,19,"Você ñ tem item.") end else doPlayerSendTextMessage(cid,19,"Voce ja trocou seu item.") end return true end
  8. Qwizer postou uma resposta no tópico em Suporte Tibia OTServer
    eu tinha um aqui mais deletei vou ver se acho novamente
  9. Qwizer postou uma resposta no tópico em Suporte Tibia OTServer
    bom, da pra usar, nao tem necessidade de storage se você não tiver o dinheiro ele ja vai retornar , e fecha as aspas doPlayerSendTextMessage(cid,19,"Você ñ tem item)
  10. Qwizer postou uma resposta no tópico em Suporte Tibia OTServer
    fragstoredskull = 9999999999999 no config.lua talvez funcione mais se for o sistema que conheço tem que mudar nas sources.
  11. function onUse(cid, item, fromPosition, itemEx, toPosition) if itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 1060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33052, y = 31084, z = 14}) setPlayerStorageValue(cid, 2060, 1) setPlayerStorageValue(cid, 1060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 2060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33098, y = 31084, z = 14}) setPlayerStorageValue(cid, 3060, 1) setPlayerStorageValue(cid, 2060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 3060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33101, y = 31117, z = 14}) setPlayerStorageValue(cid, 4060, 1) setPlayerStorageValue(cid, 3060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 4060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33072, y = 31153, z = 15}) setPlayerStorageValue(cid, 5060, 1) setPlayerStorageValue(cid, 4060, 0) elseif itemEx.itemid == 6324 or itemEx.itemid == 6325 then if getPlayerStorageValue(cid, 8060) >= 1 then doCreatureSay(cid, "NOOOoooooooo...!", TALKTYPE_ORANGE_1) doCreatureSay(cid, "This should have dealt the deathblow to the snake things' ambitions.", TALKTYPE_ORANGE_1) doTeleportThing(cid, {x = 33076, y = 31173, z = 8}) setPlayerStorageValue(cid, 5060, 0) setPlayerStorageValue(cid, 8060, 0) end end end end end end end quando usa o cetro no corpo e teleportado para fora e so podere entrar no próximo boss.
  12. Qwizer postou uma resposta no tópico em Suporte Tibia OTServer
    eles usam pagseguro, vps só tem linux se quizer windows olhe a opção cloud.
  13. desses ai eu prefiro a OTX mas ambas são excelentes, use a que você melhor se adaptar
  14. Qwizer postou uma resposta no tópico em Suporte Tibia OTServer
    como o amigo disse VENOHOST, muito bom.
  15. www.venohost.com CNPJ: 20.445.792/0001-15 muitos anos de experiencia. suporte excelente
  16. Qwizer postou uma resposta no tópico em Websites
    o menu não funciona em linux LOL
  17. sim as portas estão com actions id tbm, mais nenhum action id das portas estão adicionadas no actions.xml
  18. Nenhum porta que precisa de key no meu ot funciona e o script não da erro. --keys-- function onUse(cid, item, frompos, item2, topos) LOCKEDDOOR = {1209, 1212, 1231, 1234, 1249, 1252, 3535, 3544, 4913, 4916, 5098, 5107, 5116, 5125, 5134, 5137, 5140, 5143, 5278, 5281, 6192, 6195, 6249, 6252, 6891, 6900, 7033, 7042} UNLOCKED = {1210, 1213, 1232, 1235, 1250, 1253, 3536, 4917, 3545, 4914, 5099, 5108, 5117, 5126, 5135, 5138, 5141, 5144, 5279, 5282, 6193, 6196, 6250, 6253, 6892, 6901, 7034, 7043} OPEN = {1211, 1214, 1233, 1236, 1251, 1254, 3537, 4918, 3546, 4915, 5100, 5109, 5118, 5127, 5136, 5139, 5142, 5145, 5280, 5283, 6194, 6197, 6251, 6254, 6893, 6902, 7035, 7044} CHECKKEY = {2086, 2087, 2088, 2089, 2090, 2091, 2092} if item.actionid > 0 and item.actionid == item2.actionid then match = 1 else match = 0 end if isInArray(LOCKEDDOOR, item2.itemid) == 1 then if match == 1 then doTransformItem(item2.uid,item2.itemid+2) else doPlayerSendCancel(cid,"The key does not match.") end elseif isInArray(UNLOCKED, item2.itemid) == 1 then if match == 1 then doTransformItem(item2.uid,item2.itemid-1) else doPlayerSendCancel(cid,"The key does not match.") end elseif isInArray(OPEN, item2.itemid) == 1 then if match == 1 then doTransformItem(item2.uid,item2.itemid-2) else doPlayerSendCancel(cid,"The key does not match.") end else return 0 end return 1 end actions.xml <!-- Keys --> <action itemid="2086" script="doors/key.lua"/> <action itemid="2087" script="doors/key.lua"/> <action itemid="2088" script="doors/key.lua"/> <action itemid="2089" script="doors/key.lua"/> <action itemid="2090" script="doors/key.lua"/> <action itemid="2091" script="doors/key.lua"/> <action itemid="2092" script="doors/key.lua"/> se alguem me ajudar agradeceria, ja mechi e ja utilizei outros scripts mas não funciona TFS OTX 8.6
  19. use ostime com storage que resolve o problema.
  20. Qwizer postou uma resposta no tópico em Suporte & Pedidos
    Alguém ai que gosta de old 7.4 disposto a me ajudar a corrigir um RL 7.4?
  21. http://www.tibiaking.com/forum/topic/33691-crie-seu-client-pr%C3%B3prio-860-10xx/ esse aqui funciona 100% sempre faço a partir dele se nao ta dando certo e por que esta fazendo errado.
  22. Qwizer postou uma resposta no tópico em Websites
    poderia por os créditos tbm ne.
  23. facil ou voce muda pra sqlite ou instala e configura certo o mysql
  24. Qwizer postou uma resposta no tópico em Tibia Global OTServer
    Não e o tipo de ot que gosto mais parece interessante
  25. parece legal vou baixar para ver como e

Informação Importante

Confirmação de Termo