Ir para conteúdo

Benny

Infante
  • Total de itens

    1958
  • Registro em

  • Última visita

  • Dias Ganhos

    42

Tudo que Benny postou

  1. A questão neste tópico de suporte foi respondida e/ou o autor do tópico resolveu o problema. Este tópico está fechado e foi movido para Suporte - Resolvidos. Se você tiver outras dúvidas, crie um novo tópico.
  2. A data do tópico, usuário está banido Atenção na próxima vez.
  3. Tô em equipe já, mano. Só freelance se quiser haha Nós!
  4. Acabei de terminar mais um! Espero que seja do agrado de todos (=
  5. Benny

    Old School

    Não, só vc, o exclusivo
  6. Entra em contato pela MP, ou pelo Discord do xtibia.
  7. Benny

    Show Off - Web

    Olá, vou mostrar à vocês meus últimos layouts. 1 - Shinobi Adventures (já vendido) tanto a logo quanto o site foram feitos por mim. 2 - NoName (à venda) - Layout de pokémon.
  8. Eu digo o arquivo do NPC, o código dele
  9. 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 not npcHandler:isFocused(cid) then return false end if msgcontains(msg, 'bp of ultimate healing') then npcHandler:say('Do you want to buy a backpack of ultimate healing rune for 3000 gold coins?') talk_state = 1 elseif msgcontains(msg, 'yes') and talk_state == 1 then if getPlayerMoney(cid) >= 3000 then blue_bp = doPlayerAddItem(cid, 2002, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doPlayerRemoveMoney(cid, 3000) npcHandler:say('Thank you for buying.') talk_state = 0 else npcHandler:say('You don\'t have enough money.') talk_state = 0 end end if msgcontains(msg, 'bp of sudden death') then npcHandler:say('Do you want to buy a backpack of sudden death rune for 6000 gold coins?') talk_state = 2 elseif msgcontains(msg, 'yes') and talk_state == 2 then if getPlayerMoney(cid) >= 5500 then grey_bp = doPlayerAddItem(cid, 2003, 1) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doPlayerRemoveMoney(cid, 5500) npcHandler:say('Thank you for buying.') talk_state = 0 else npcHandler:say('You don\'t have enough money.') talk_state = 0 end end if msgcontains(msg, 'bp of heavy magic missile') then npcHandler:say('Do you want to buy a backpack of heavy magic missile rune for 2000 gold coins?') talk_state = 3 elseif msgcontains(msg, 'yes') and talk_state == 3 then if getPlayerMoney(cid) >= 2000 then purple1_bp = doPlayerAddItem(cid, 2001, 1) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doPlayerRemoveMoney(cid, 2000) npcHandler:say('Thank you for buying.') talk_state = 0 else npcHandler:say('You don\'t have enough money.') talk_state = 0 end end if msgcontains(msg, 'bp of great fireball') then npcHandler:say('Do you want to buy a backpack of great fireball rune for 3000 gold coins?') talk_state = 4 elseif msgcontains(msg, 'yes') and talk_state == 4 then if getPlayerMoney(cid) >= 3000 then red_bp = doPlayerAddItem(cid, 2000, 1) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doPlayerRemoveMoney(cid, 3000) npcHandler:say('Thank you for buying.') talk_state = 0 else npcHandler:say('You don\'t have enough money.') talk_state = 0 end end if msgcontains(msg, 'bp of explosion') or msgcontains(msg, 'bp of explo') then npcHandler:say('Do you want to buy a backpack of explosion rune for 4000 gold coins?') talk_state = 5 elseif msgcontains(msg, 'yes') and talk_state == 5 then if getPlayerMoney(cid) >= 4000 then purple2_bp = doPlayerAddItem(cid, 2001, 1) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doPlayerRemoveMoney(cid, 4000) npcHandler:say('Thank you for buying.') talk_state = 0 else npcHandler:say('You don\'t have enough money.') talk_state = 0 end end  end
  10. Tenta assim 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 not npcHandler:isFocused(cid) then return false end if msgcontains(msg, 'bp of ultimate healing') then npcHandler:say('Do you want to buy a backpack of ultimate healing rune for 3000 gold coins?') talk_state = 1 elseif msgcontains(msg, 'yes') and talk_state == 1 then if getPlayerMoney(cid) >= 3000 then blue_bp = doPlayerAddItem(cid, 2002, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doAddContainerItem(blue_bp, 2273, 1) doPlayerRemoveMoney(cid, 3000) npcHandler:say('Thank you for buying.') talk_state = 0 else npcHandler:say('You don\'t have enough money.') talk_state = 0 end end if msgcontains(msg, 'bp of sudden death') then npcHandler:say('Do you want to buy a backpack of sudden death rune for 6000 gold coins?') talk_state = 2 elseif msgcontains(msg, 'yes') and talk_state == 2 then if getPlayerMoney(cid) >= 5500 then grey_bp = doPlayerAddItem(cid, 2003, 1) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doAddContainerItem(grey_bp, 2268, 3) doPlayerRemoveMoney(cid, 5500) npcHandler:say('Thank you for buying.') talk_state = 0 else npcHandler:say('You don\'t have enough money.') talk_state = 0 end end if msgcontains(msg, 'bp of heavy magic missile') then npcHandler:say('Do you want to buy a backpack of heavy magic missile rune for 2000 gold coins?') talk_state = 3 elseif msgcontains(msg, 'yes') and talk_state == 3 then if getPlayerMoney(cid) >= 2000 then purple1_bp = doPlayerAddItem(cid, 2001, 1) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doAddContainerItem(purple1_bp, 2311, 5) doPlayerRemoveMoney(cid, 2000) npcHandler:say('Thank you for buying.') talk_state = 0 else npcHandler:say('You don\'t have enough money.') talk_state = 0 end end if msgcontains(msg, 'bp of great fireball') then npcHandler:say('Do you want to buy a backpack of great fireball rune for 3000 gold coins?') talk_state = 4 elseif msgcontains(msg, 'yes') and talk_state == 4 then if getPlayerMoney(cid) >= 3000 then red_bp = doPlayerAddItem(cid, 2000, 1) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doAddContainerItem(red_bp, 2304, 4) doPlayerRemoveMoney(cid, 3000) npcHandler:say('Thank you for buying.') talk_state = 0 else npcHandler:say('You don\'t have enough money.') talk_state = 0 end end if msgcontains(msg, 'bp of explosion') or msgcontains(msg, 'bp of explo') then npcHandler:say('Do you want to buy a backpack of explosion rune for 4000 gold coins?') talk_state = 5 elseif msgcontains(msg, 'yes') and talk_state == 5 then if getPlayerMoney(cid) >= 4000 then purple2_bp = doPlayerAddItem(cid, 2001, 1) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doAddContainerItem(purple2_bp, 2313, 3) doPlayerRemoveMoney(cid, 4000) npcHandler:say('Thank you for buying.') talk_state = 0 else npcHandler:say('You don\'t have enough money.') talk_state = 0 end end
  11. Caramba, que maneiro. Parabéns pelos jobs! Ficaram maneiros! o da pokebola é o melhor.
  12. Você já foi alertado verbalmente várias vezes para ler as regras do fórum, não reviva tópicos. Preste atenção na data do mesmo.
  13. Evite de usar esse tipo de título em seu tópico, leia as regras!
  14. Tome cuidado ao reviver tópicos antigos! Crie um novo tópico, assim sua dúvida deverá ser sanada mais facilmente.
  15. O pedido neste tópico de foi atendido e/ou o autor do tópico resolveu sua duvida. Este tópico está fechado e foi movido para Pedidos - Resolvidos. Se você tiver outros pedidos, crie um novo tópico.
  16. Benny

    Otpanel

    Boa tarde, @RAJADAO. P Por mais que as empresas tenham ligação, é melhor você entrar em contato direto com o suporte deles. No site, na seção 'área do cliente'. Se não me engano, eles abrem o suporte amanhã, a partir das 10hrs. Abração!
  17. Benny

    xTibia - Recruta!

    Não se sinta não, meu bom! Vejo mais potencial em você do que alguns que estão aqui ? A seção tá precisando de um designer, se esforça, quem sabe? Nós
  18. Você pode utilizar o botão 'up' localizado no topo do tópico. Mas, acredito que seja melhor você criar um tópico com sua dúvida, visto que o tópico é beeem antigo. Abraços ?
  • Quem Está Navegando   0 membros estão online

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