Ir para conteúdo

Carlos Vampetta

Campones
  • Total de itens

    27
  • Registro em

  • Última visita

Tudo que Carlos Vampetta postou

  1. 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 moeda = 2148 local t = { ["great light"] = {price = 500,vocations = {3,4},level = 1}, ["light magic missile"] = {price = 500,vocations = {3},level = 1}, ["light"] = {price = 0,vocations = {3,4},level = 1}, ["light healing"] = {price = 170,vocations = {3,4},level = 1}, ["find person"] = {price = 80,vocations = {3,4},level = 1}, ["antidote"] = {price = 150,vocations = {3,4},level = 1}, ["create food"] = {price = 300,vocations = {3},level = 1}, ["destroy field"] = {price = 700,vocations = {3},level = 1}, ["conjure arrow"] = {price = 450,vocations = {3},level = 1}, ["conjure poisoned arrow"] = {price = 700,vocations = {3},level = 1}, ["intense healing"] = {price = 350,vocations = {3},level = 1}, ["ultimate healing"] = {price = 1000,vocations = {3},level = 1}, ["heavy magic missile"] = {price = 1500,vocations = {3},level = 1}, ["desintegrate"] = {price = 900,vocations = {3},level = 1}, ["invisibility"] = {price = 2000,vocations = {3},level = 1}, ["conjure explosive arrow"] = {price = 1000,vocations = {3},level = 1}, } if (msgcontains(msg, 'SPELLS') or msgcontains(msg, 'spells'))then local str = "" str = str .. "I sell" for name, pos in pairs(t) do str = str.." {"..name.."} = "..pos.price.."gold /" end str = str .. "." npcHandler:say(str, cid) elseif t[msg] then if not getPlayerLearnedInstantSpell(cid, msg) then if getPlayerLevel(cid) >= t[msg].level then if isInArray(t[msg].vocations, getPlayerVocation(cid)) then npcHandler:say("Would you like to learn ".. msg .." for "..t[msg].price.."?", cid) if doPlayerRemoveItem(cid,moeda,t[msg].price) then doPlayerLearnInstantSpell(cid, msg) npcHandler:say("You learned a new magic called ".. msg .."!", cid) else npcHandler:say("You dont have "..t[msg].price.." ".. getItemNameById(moeda), cid) end else npcHandler:say("Sorry, I only teach spells to knights and paladins.", cid) end else npcHandler:say("you need to have level "..t[msg].level.." or more to learn this magic.", cid) end else npcHandler:say("You have already learned this magic.", cid) end end return TRUE end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) Está funcionando tudo normal ele pergunta se quer o spell tal, mas ele pergunta e já vende o spell direto, não da pra responder yes, tem alguma maneira de colocar para escrever um yes para o script prosseguir? abaixo da linha npcHandler:say("Would you like to learn ".. msg .." for "..t[msg].price.."?", cid)
  2. Olá pesquisei em todo lugar e não acho um módulo de hotkey, achei spell bar.. mas no caso eu queria um modulo de hotkey mesmo, os botoes na tela F1, F2, pra clicando neles, executar a hotkey que esta no F1, F2 etc... ate tentei fazer com esse código: g_keyboard.KeyPress(F1) mas não funcionou
  3. eu queria saber para que serve os opcodes que ate agora na oentendi
  4. Estou criando um modulo no OTC que ao clicar no icone o char anda para cima, g_mouse.bindPress(sbw, function() g_game.walk(North) end) Mas eu tenho que ficar clicando pra ele continuar andando, cada click ele anda um sqm eu queria clicar e segurar e o char ir andando sem parar, so parar quando eu soltar o mouse o que estou fazendo de errado?
  5. Olá estou com um projeto de mapa 8.6 remunerado, quem estiver interessado envie print de mapa que você já fez para meu e-mail irei responder lá guilherme@fastservice.com
  6. Estou fazendo um Tibia STAR WARS irei mostrar algumas imagens Página do Facebook: https://www.facebook.com/TibiaStarWars/
  7. agora entro a galera surgiu de onde? kk
  8. é tambem penso igual você, esse não tem essas coisas de atravessar etc. pena que está vazio
  9. It was 7.6 is now 7.4 and so far has no reset is equal to the same global
  10. Olá como removo um botão do Client do Tibia 8.6 pelo Hex Editor? eu só consegui remover os textos mas esses das caixas vermelhas não consegui remover nenhum, apenas o texto deles mas o botão continua ninguem?
  11. muito legal, mas as wands e rods são do 7.6 no 7.4 usava umas wands q ngm conhece nem no tibia wiki tem info direito.
  12. pra mim ta massa, ta com trap de pot, player nao atravessa player, spear cai no chao, treina com monk a diferença é a hk mesmo, mas o resto ta identico até o manafluid *-*
  13. vai rolar aquele evento de 20x em 4 de janeiro?
  14. O npc vende o outfit até se o player estiver sem dinheiro =/ se ele estiver com dinheiro desconta normal, mas sem ele vende e não tira nada, qual o erro? 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 config = { itemNeeded = 2160, count = 100, addonName = "Beggar", outfitId = 14, storage = 3848, } if (msgcontains(msg, config.addonName)) then if doPlayerRemoveItem(cid, config.itemNeeded, config.count) then else selfSay('Sorry, you need a '..config.count..' of '..getItemNameById(config.itemNeeded)..' for complet a my trade.', cid) end if getPlayerStorageValue(cid, config.storage) < 1 then else return selfSay('Sorry, you this have a addon of '..config.addonName..' Outfit.', cid) end selfSay("Well I give you "..config.addonName..", the more you need to give me certain items do you accept this trade? ", cid) talkState[talkUser] = 1 elseif(msgcontains(msg, "yes")) and talkState[talkUser] == 1 then selfSay("only rich people can buy my outfit.",cid) talkState[talkUser] = 0 doPlayerAddOutfit(cid,config.outfitId, config.giveAddons) setPlayerStorageValue(cid, config.storage, 1) end return true end keywordHandler:addKeyword({'outfit'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell {Beggar} Outfit for 1k.'}) keywordHandler:addKeyword({'mission'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell {Beggar} Outfit for 1k.'}) keywordHandler:addKeyword({'task'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I sell {Beggar} Outfit for 1k.'}) npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  15. se conseguir posta ai, eu so consegui nesse porque o client deles é um client proprio que misturaram o client do 8.6 com o 7.4 dai alterei o client deles e consegui rodar o tibia auto, mas os q nao usam funções do 8.6 dentro do 7.4 não sei se vai ser facil
  16. Se você joga Medivia, Tibianic, Classicus etc e está procurando um bot para essa versão sinto muito mas eles usam client próprio. O TibiaOldSchool 7.4 usa client próprio também e o bot não funciona neles, mas consegui criar um client para ser compátivel com o bot! agora vc pode upar no 7.4 com bot, mas funciona apenas no servidor Tibiaoldschool.com q pra mim é o melhor 7.4.. Scan: http://s12.postimg.org/tyo0t8kf1/scan.jpg Bot para Tibia 7.4 DOWNLOAD: http://www.mediafire.com/download/akgidqs3zatv2wo/bot.rar
  17. Parabéns vc misturou o 8.6 com o 7.4 ficou uma combinação perfeita!
  18. que massa, so nao manjo oq é inquisition
  19. eu nao vi a poi funcionamento, mas a poi foi adicionada no global no 7.9?
  20. nada, deixa assim, senao lota de gente lvl 100+
  21. sakei valeu por informar, agora o server ta enchendo =)
  22. Porque as mortes não esta aparecendo no site? e porque algumas armas tem lvl, se nao me engano nessa versao nao tinha lvl nas armas e o meat apodrecia com o tempo, ou estou enganado
  23. muito bom o server, mais fiel doque o tibianic
  • Quem Está Navegando   0 membros estão online

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