Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''mukah''.



Mais opções de pesquisa

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • A Cidade OTBR
    • OTServ Brasil
    • Atendimento
    • Taverna
  • Projetos Open Source
    • Canary
    • OTServBR-Global
    • Mehah OTClient
    • MyAAC
  • OpenTibia
    • Notícias e Discussões
    • Suporte - Dúvidas, Bugs, Erros
    • Downloads
    • Tutoriais
    • Show-Off
  • Outros
    • Design

Encontrado 1 registro

  1. [8.1] Fishing Evolution

    ------------------------------- Nome: Fishing Evolution Versão: 8.10 Tipo do script: Action Servidor Testado: Aries 0.4.5 Autor: Mukah ------------------------------- Como disse no meu primeiro script, do Plantinha System, postaria mais scripts meus... Dai eu pensei assim: Eu to sem scripts pra coloca lá... eu tenho uns só que estão muito foda pra ficar postano. MAS... Eu pensei melhor. Como gostei dos elogios, axei que vocês iriam gostar desse script tbm! (OBS: virem meu fan please *-*) O script eh o seguinte: Vocês conheçem o script de fishing (pesca) tradicional do Tibia certo? Mas este que fiz, ele é modificado! "Fishing Evolution 100 x 0 Fishing Global UHUU!! :lol:" Voltando ao assunto, o script ele pesca todos os tipos de peixe que existe no global! (Mais abaixo vou postar a tabela de peixes) Alem de ele pescar todos os tipos, ele contém outros efeitos (quando você pega o peixe) e ainda por cima necessita de skills para poder pescar os peixes! Inclusive, no final eu vou colocar o script do NPC que compra todos os itens e também o script para comer todos os peixes também! Tabela de peixes: Shrimps - [skill: 0-25+] Fishs - [skill: 26-35+] Northern Pikes - [skill: 36-45+] Green Perchs - [skill: 46-55+] Rainbow Trouts - [skill: 56-65+] Marlins - [skill: 66+] ----------------------------------------------- Bom, vamos para os scripts: Crie um arquivo na pasta "data/actions/scripts/" com o nome de "fishing.lua". fishing.lua -- Script 100% by Mukah -- local useWorms = TRUE local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625} function onUse(cid, item, fromPosition, itemEx, toPosition) fskill = getPlayerSkill(cid,6) count = math.random(3,7) if isInArray(waterIds, itemEx.itemid) == TRUE then if itemEx.itemid ~= 493 then if useWorms == FALSE or useWorms == useWorms then fish = math.random(1,fskill) if (fish == 2 or fish == 4 or fish == 6 or fish == 8 or fish == 10 or fish == 12 or fish == 14 or fish == 16 or fish == 18 or fish == 20 or fish == 22 or fish == 24) then doPlayerAddItem(cid, 2670, count) doPlayerRemoveItem(cid, 3976, 1) doSendMagicEffect(toPosition, 53) doPlayerAddExp(cid,math.random(1,fskill+fskill/2+15)) doPlayerAddSkillTry(cid,6,1) elseif (fish == 26 or fish == 28 or fish == 30 or fish == 32 or fish == 34) then doPlayerAddItem(cid, 2667, 1) doPlayerRemoveItem(cid, 3976, 1) doSendMagicEffect(toPosition, 53) doPlayerAddExp(cid,math.random(1,fskill+fskill/2+15)) doPlayerAddSkillTry(cid,6,1) elseif (fish == 36 or fish == 38 or fish == 40 or fish == 42 or fish == 44) then doPlayerAddItem(cid, 2669, 1) doPlayerRemoveItem(cid, 3976, 1) doSendMagicEffect(toPosition, 53) doPlayerAddExp(cid,math.random(1,fskill+fskill/2+20)) doPlayerAddSkillTry(cid,6,1) elseif (fish == 46 or fish == 48 or fish == 50 or fish == 52 or fish == 54) then doPlayerAddItem(cid, 7159, 1) doPlayerRemoveItem(cid, 3976, 1) doSendMagicEffect(toPosition, 53) doPlayerAddExp(cid,math.random(1,fskill+fskill/2+30)) doPlayerAddSkillTry(cid,6,1) elseif (fish == 56 or fish == 58 or fish == 60 or fish == 62 or fish == 64) then doPlayerAddItem(cid, 7158, 1) doPlayerRemoveItem(cid, 3976, 1) doSendMagicEffect(toPosition, 53) doPlayerAddExp(cid,math.random(1,fskill+fskill/2+40)) doPlayerAddSkillTry(cid,6,1) elseif (fish == 66 or fish == 68 or fish == 70 or fish == 72 or fish == 74 or fish == 76 or fish == 78 or fish == 80 or fish == 82 or fish == 84 or fish == 86 or fish == 88 or fish == 90 or fish == 92 or fish == 94 or fish == 96 or fish == 98 or fish == 100 or fish == 102 or fish == 104 or fish == 106 or fish == 108 or fish == 110 or fish == 112 or fish == 114 or fish == 116 or fish == 118 or fish == 120 or fish >= 150) then doPlayerAddItem(cid, 7963, 1) doPlayerRemoveItem(cid, 3976, 1) doSendMagicEffect(toPosition, 53) doPlayerAddExp(cid,math.random(1,fskill+fskill/2+60)) doPlayerAddSkillTry(cid,6,2) else end end end doSendMagicEffect(toPosition, 1) return TRUE end return FALSE end -- Script 100% by Mukah -- Após ter criado o script acima, abra o arquivo "data/actions/actions.xml". Coloque o tag dentro depois do "<actions>" e antes do "</actions>". tag actions <action itemid="2580" script="fishing.lua" allowfaruse="1" /> [Edit_Motivo: Continuação] Bom.. então vamos para o script para COMER todas as comidas... ou melhor: peixes! Provavelmente seu OT já come Fish/Shrimps/Northerns Pikes; Então apenas vao restar Green Perchs/Rainbow Trouts/Marlins. Crie um arquivo na pasta "data/actions/scripts/" com o nome de "peixes.lua". -- Script Aries editado por Mukah -- local text = "" local nutrition = 0 local effect = 50 function onUse(cid, item, frompos, item2, topos) if item.itemid == 7159 then nutrition = [color=Red]50[/color] text = "[color=Blue]Munch.[/color]" elseif item.itemid == 7158 then nutrition = [color=Red]70[/color] text = "[color=Blue]Munch.[/color]" elseif item.itemid == 7963 then nutrition = [color=Red]350[/color] text = "[color=Blue]Munch.[/color]" end if (getPlayerFood(cid) + nutrition > 400) then doPlayerSendCancel(cid,"You are full.") else doPlayerFeed(cid, nutrition * 4) doPlayerSay(cid, text, 16) doRemoveItem(item.uid, 1) if effect < 31 then doSendMagicEffect(getPlayerPosition(cid), 27) end end return 1 end -- Script Aries editado por Mukah -- Pergunta: Ei Muka! Eu quero que os peixes sustente um certo tanto, como faço? Resposta do Muka: Voce edita os números em VERMELHO de acordo com sua escolha! Lembrando que quando o player fica Full, ele fica com 400 de Sustento (Feed) Pergunta: Ok. Mas agora eu quero mudar a FALA! Quero que ele fale "Mukah" em vez de "Munch"! Como eu faço? Resposta: Está vendo as palavras na cor AZUL? Você poderá editar avontade, basta mudar a fala sem tirar as Aspas ("")! Continuando: Agora falta o script do "actions.xml"! Após ter criado o script acima, abra o arquivo "data/actions/actions.xml". Coloque o tag dentro depois do "<actions>" e antes do "</actions>". tag actions <action itemid="7159" script="peixes.lua" /> <action itemid="7158" script="peixes.lua" /> <action itemid="7963" script="peixes.lua" /> Agora falta somente o NPC para vender os peixes (todos)! Crie um arquivo na pasta "data/npc/" e renomeie com o nome de "Perac.xml", um nome já bastante conheçido de alguns OT's baixados. Em seguida abra o arquivo "Perac.xml" e coloque o seguinte script: perac.xml <?xml version="1.0"?> <npc name="Perac" script="data/npc/scripts/fishs.lua" access="3" lookdir="2" autowalk="25"> <mana now="800" max="800"/> <health now="200" max="200"/> <look type="128" head="66" body="46" legs="2" feet="89"/> </npc> Agora crie um arquivo na pasta "data/actions/scripts/" com o nome de "fishs.lua". fishs.lua -- Script 100% by Mukah -- local focus = 0 local talk_start = 0 local target = 0 local following = false local attacking = false function onThingMove(creature, thing, oldpos, oldstackpos) end function onCreatureAppear(creature) end function onCreatureDisappear(cid, pos) if focus == cid then selfSay('Good bye then.') focus = 0 talk_start = 0 end end function onCreatureTurn(creature) end function msgcontains(txt, str) return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) end function onCreatureSay(cid, type, msg) msg = string.lower(msg) if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) < 4 then selfSay('Hello ' .. creatureGetName(cid) .. '! I sell fishing rods(100gp) and buy Shrimp(5gp), Fish(20gp), Northern Pikes(40gp), Green Perch(70gp), Rainbow Trout(100gp) and Marlin(500gp).') focus = cid talk_start = os.clock() elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.') elseif focus == cid then talk_start = os.clock() if msgcontains(msg, 'shrimp') or msgcontains(msg, 'shrimps') then sell(cid,2670,getCount(msg),5) elseif msgcontains(msg, 'fish') or msgcontains(msg, 'fishs') then sell(cid,2667,getCount(msg),15) elseif msgcontains(msg, 'northern pike') or msgcontains(msg, 'northerns pikes') then sell(cid,2669,getCount(msg),40) elseif msgcontains(msg, 'green perch') or msgcontains(msg, 'green perchs') then sell(cid,7159,getCount(msg),70) elseif msgcontains(msg, 'rainbow trout') or msgcontains(msg, 'rainbow trouts') then sell(cid,7158,getCount(msg),100) elseif msgcontains(msg, 'marlin') or msgcontains(msg, 'marlins') then sell(cid,7963,getCount(msg),500) elseif msgcontains(msg, 'fishing rod') then buy(cid,2580,1,100) elseif msgcontains(msg, 'bye') and focus == cid and getDistanceToCreature(cid) < 4 then selfSay('Good bye, ' .. creatureGetName(cid) .. '!') focus = 0 talk_start = 0 elseif msgcontains(msg, 'no') then selfSay('Ok. Come back when you need my services.') talk_state = 0 end end end function onCreatureChangeOutfit(creature) end function onThink() if (os.clock() - talk_start) > 30 then if focus > 0 then selfSay('Next Please...') end focus = 0 end if focus ~= 0 then if getDistanceToCreature(focus) > 5 then selfSay('Good bye then.') focus = 0 end end end -- Script 100% by Mukah -- Agora só falta adiciona-lo no seu map editor! Como adicionar no map editor? A OTNET tem! Ta ai uma foto do que fiz no meu OT que começei a criar: [Edit_Motivo: Continuação] Ta ai! (Y) Vlws! COMENTA! (Y) e VIRA MEU FAN PLEASE!
×