Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''8.60''.

  • Pesquisar por Tags

    Digite tags separadas por vírgulas
  • Pesquisar por Autor

Tipo de Conteúdo


Fóruns

  • xTibia - Notícias e Suporte
    • Regras
    • Noticias
    • Soluções
    • Projetos Patrocinados
    • Tutoriais para Iniciantes
    • Imprensa
  • OTServ
    • Notícias e Debates
    • OTServlist
    • Downloads
    • Recursos
    • Suporte
    • Pedidos
    • Show-Off
    • Tutoriais
  • OFF-Topic
    • Barzinho do Éks
    • Design
    • Informática

Encontrar resultados em...

Encontrar resultados que contenham...


Data de Criação

  • Início

    FIM


Data de Atualização

  • Início

    FIM


Filtrar pelo número de...

Data de Registro

  • Início

    FIM


Grupo


Sou

  1. Alguém tem ou sabe qual e o mapa dessa foto
  2. Então pessoal, eu tenho um projeto de criar um servidor retro pvp, 8.6, mapa proprio, sem itens infinitos, com sistemas e eventos exclusivos, mas meu medo, é eu trabalhar tanto nesse servidor e ele não "lotar". Gostaria de saber a opinião de vocês de que se meu servidor poderá dar certo, ou somente Baiaks e Globais atualmente dão certo Obrigado pela atenção
  3. Quero pedir ajuda de vocês numa talkaction que vai ser usada no summon, vai funcionar assim, ele usa a magia depois morre, como um kamikaze. Eu coloquei essa função para os summons poderem usar spells. ( doCreatureCastSpell ) http://www.xtibia.com/forum/topic/232979-c-docreaturecastspellcreature-spellname/ Obs: Pela minha logica funcionaria da seguinte maneira: o player usa a talkation, depois da spell executada o summon é removido. script:
  4. Olá pessoas, to aqui para pedir uma ajuda PARA ADICIONAR ALGUMAS COISAS num script de summon por level, exemplo: Eu sou x level, uso o summon e sumono x monstro. Porém o script é muito simples; se o player não tem o level necessário não envia a msg avisando isso a ele, não tem exausted também. Como eu sou totalmente leigo vim pedir uma ajudinha de vocês. Segue o script:
  5. Galera, estou tendo um problema com o RME no meu pc. Já tentei em todos e não consigo resolver. Toda vez que eu abro o RME, seja o direto o mapa ou ele sem nada, não da nem 10 seg e da erro de programa e tenho que fechar. Alguém sabe o motivo disso e como resolver? Dou REP durante 1 vida pra quem ajudar...
  6. Então, tive uma ideia, mas não faço por falta de habilidade, seria legal se tivesse aqui no fórum pra todo mundo usar seria MUITO útil para todos Dez de quem tem um OT mapa global à quem tem um OT mapa proprio... Um remake de okolnir só que sem gelo, mas pra uma area de Dragons e DLs como é darashia, isso seria util de mais, pq cave de dragon e dl em ot cheio é um inferno, todo mundo quer upar nesses monstrinhos
  7. Bom dia galera, eu preciso um Global Server Map Rl Sem Rook é sem bugs, um server estavel, eu qero fazer um dedicado Pfv! Dou REP!
  8. Seguinte Galera, Estou Com Este Erro no Script... [3/6/2016 17:36:10] [Error - MoveEvents Interface] [3/6/2016 17:36:10] data/movements/scripts/aviso.lua:onStepIn[3/6/2016 17:36:10] Description: [3/6/2016 17:36:10] data/movements/scripts/aviso.lua:22: attempt to concatenate a nil value[3/6/2016 17:36:10] stack traceback:[3/6/2016 17:36:10] data/movements/scripts/aviso.lua:22: in function <data/movements/scripts/aviso.lua:11> E Aqui Esta o Script function isPlayerGuild(cid) return getPlayerGuildName(cid) ~= "" and true or falseendfunction getGuildNameById(id) -- by Vodka local query = db.getResult("SELECT `name` FROM `guilds` WHERE `id` = "..id) if query:getID() ~= -1 then return query:getDataString("name") end return nil end function onStepIn(cid, item, position, fromPosition) local castle_one_name = "Castle24Horas" -- Nome do castelo 1 local storages = {154154, 54321, 123123} -- Storages ( se vc eh iniciante) local sto_ativ = getGlobalStorageValue(storages[2]) local position = getCreaturePosition(cid) if isPlayerGuild(cid) then if sto_ativ == 1 or sto_ativ == -1 then guildname = getPlayerGuildName(cid) guild = getPlayerGuildId(cid) guild_sto = getGlobalStorageValue(storages[3]) if guild ~= guild_sto then doBroadcastMessage("O Jogador: "..getCreatureName(cid)..", da GUILD: "..guildname..", Esta invadindo o "..castle_one_name..", Aviso #Donos Atuais: "..getGuildNameById(getGlobalStorageValue(storages[3])), 27) else doPlayerSendCancel(cid,"O Castelo pertence a sua guild.") end else doPlayerSendCancel(cid,"O Castelo pertence a sua guild.") end else doPlayerSendCancel(cid,"O Castelo pertence a sua guild.") end return trueend Alguem Poderia me Ajudar? Valendo Sempre +REP
  9. Seguinte Galera, No meu server tem um outfit exclusivo, você só pode usa-lo se matar o boss Gonka... Acontece que Queria Achar a Pasta a onde Edito ele... E aparece uma mensagem assim no chat 13:54 Você não é digno de usar esse outfit. Somente aqueles que derrotaram o Gonka podem usá-lo. Queria Pedir a Ajuda de Voces onde Posso Encontrar este Arquivo nas Pastas do Meu Server... exemplo;actions,creaturescripts...
  10. Lançamento oficial: DIA 30/05/2016 às 20:00 horas Site: www.riderswar.com Fórum: www.riderswar.com/forum Ola Amigos, bem vindos ao RidersWar. Um novo Baiak com muita diversão, missões e quests para você sedivertirno seu dia a dia. O Riderswar é resultado de em média 6 meses de trabalho e dedicação. Tentamos inovar, trazer sistemas exclusivos, e apesar de ser Baiak ainda troucemos quests- tasks- missões com histórias em RPG, além de muita War o player terá que provar ser um ótimo jogador e um grande guerreiro para conseguir completar nossas quests. Conheça abaixo um pouco sobre o RidersWar. MAIS DE 100 - TELEPORTS, HUNTS E QUESTS Eventos: Battlefield - Objetivo é Capturar a bandeira do Time adversário Enchanted Forest - Objetivo é passar pelos labirintos encantados, exige força, blocar e capturar a bandeira Zombie Event - Objetivo é fujir dos Zombies , não deixe que te peguem, o ultimo a ficar na arena e o vencedor Resta1 - Uma arena automática de Monstros, o ultimo sobrevivente é o vencedor CityWar - Objetivo é matar a maior quantidade de players no eventos em 10 minutos, o Top frags é o vencedor Dota - Objetivo é destruir os Geradores da sua cor, o primeiro grupo a destruir os 3 geradores é o vencedor. Quests: Pits of Inferno (POI) Anihilator (Anihi) Inquisition (Inqui) Quests de addon Especial Ferumbras the returns Anihilator the returns Epicland Quest Task Legendary Task Epic Task de Paciência Spirit of Infernia (SOI) Portais do Inferno New Spell Quest Room Quest VIP 1 - Para Free Cidades: Blood City - Free Rider City - premium Gengia - Free Infernia - Free Epic Land - Free Aurora - VIP 1 - FREE Sistemas: Soma de Equação do 2° Grau - o Servidor te permite fazer soma de equação do segundo grau alem de jogar você pode estudar sobre equação no Riderswar. Venha se divertir aprender e curtir as maiores aventuras que esperam por você... Encantamento de Itens Legendary - os Players podem encantar seus Itens do Shopping em um item legendary os tornando mais fortes e grandes guerreiros. Maker Supreme armor 30% - Este Maker pode ser usado em uma armor Legendary e se tornar supreme te dando+ 30% de vida e mana Maker Speed Attack 2.5 - Este Maker pode ser utilizados em Weapons Vips dando a elas um attack speed de 2.5 Heart f Infernia - Este Coração de fogo da ao player 20% de Experiencia ao ser equipado no slot de flechas, Duração de 12 horas. caso nao use nao gasta. Double Exp Potion - Este potion da ao player Double exp por 1 Hora Super Doll - Utilize este doll, e tenha change de ganhar um addon especial... São 1 entre 6 addons especiais que você pode ganhar aleatoriamente. Cada jogador tem direito a usar 1x . Tornando os addons exclusivos para cada player. War System - Marque guerras e desafie outras guilds no Riderswar Cast System - Ustilize o cast com o comando /cast on e transmita sua aventura ao vivo in-game Castle Land - Castelo pode ser dominado pela guild dando acesos a hunts privadas Rider Map save - Item Vip ao qual te da a possibilidade de salvar sua posição e retornar quando precisar. Super seguro contra Bugs HUNT privada - O Player compra acesso a uma hunt sozinho... Onde ninguém mais pode entrar. Teleports Expert - Teleports capazes de te levar onde você precisa... Bom temos muitas outras novidades venha conhecer nosso servidor! Lançamento oficial: DIA 30/05/2016
  11. Seguinte Galera, Queria um Script de Mensagem assim, Quando o Player Entrar em uma Sala de Hunts Ira Aparecer em Cima do Seu Personagem ou "Outfit" Uma Mensagem de Bem Vindo a Sala de Hunts, Em Cor LARANJA tipo Como se fosse comprar !bless... Que Aparece Aquela Mensagem em cima do corpo... E se ele voltava para o Templo e Entrava de novo na Sala de Hunts iria repetir de novo....
  12. Eu queria um script que, quando um player usasse este item = 5905, ele dará ao player um desses items dentro de uma bp = 6548, 6547, 6549.. eu queria que a escolha escorresse a mesma chance para os 3 items. alguns detalhes importantes> após o player usar o item 5905, ele some e só assim é adicionado outro item... o maximo de item qe o player pode ganhar dentro da bp é 1 ... eu gostaria q saísse um efeito e um falante na posição do player após o uso, e uma msg no default pra ele em laranja..
  13. Primeiramente boa noite, Bom, venho até aqui a procura de uma nova equipe que tenha interesse realmente em ajudar como vocês ja viram no titulo é um baiak 8.60 vou direto ao assunto. Precisamos dos seguintes cargos [CM] oque vai ficar online no servidor ajudando help/report atras de bug Etc. [scripter] Uma pessoa que entenda de script pelo menos o basico. [Mapper] Pelo menos o basico. E em relação ao host? bom, eu mesmo vou hostear no meu pc suporta até 300-350 Players online então acho que isso não vai ser problema por enquanto sem um VPS. Servidor ficara online 24/7. 8.60 Pagina no Facebook. não pretendo criar um site. Um Pouco mais sobre o servidor? bom, é um baiak 8.60 Galera creio que todos vocês ja sabem oque contem ne um baiak ex: eventos,system etc mais toda semana estarei fazendo uma manutenção e tentando assim sempre trazer algo novo tipo: ilhas, casas, spells, monster etc. Vai ter donation? não, por enquanto não penso em colocar no servidor quem sabe mais pra frente daqui 1/2 meses. porém criarei um npc com acesso a armas boas para um bom pvp Exp do SV: Bom, Alta mais não aquelas que top é lvl 20k-30k ai não rs Balanceamento: Bom, isso pretendo resolver conforme o game for rolando estarei de olho claro noque precisa ou não ser ajeitado deixando assim uma jogabilidade igual para todos. Fast Attack? Claro, :v Botzera Liberado? Opa claro. Bom então é isso galera aguardo respostas e vamo que vamo ! obs: deixem nos comentarios ou mande msg para mim caso se interesse.
  14. ae galera criei um servidor venham jogar vagas para god e gm x800 mapa baiak ggot.servegame.com 7171
  15. ZENIA ATS 8.6!! SERVIDOR ZENIA VENHA SER O TOP SITE DO SERVIDOR : http://zenia.servegame.com/ Sobre o servidor: o que seria um ATS ??? Alternative Tibia Server servidor dedicado ao RPG e a característica de exp baixa. Rate do Servidor: Exp: 3x Skill: 6x Magic: 6x Loot: 1.5x Bless: Apenas para Premium Account e podem ser compradas no NPC do TEMPLO Premium: R$ 20.00 (30 dias) " ser premium account ajuda o servidor se manter " *Vantagens Premium: Viajar nos barcos, quests exclusivas, outfits/addons, promotion*,exp bonus. *Promotion: Regem mais rapida, attack mais rapido. Raid: Invasões GlobalEvents Itens: Zenia Boots (HP 10/1.5s - Mana 15/1.5s) + 40 Speed. Stamina Refil Premium Scroll Imagens do Servidor? Wolrd of Zenia Facebook Zenia
  16. Pokémon Origins, Projéto de Poketibia As Principais funções são: - Level System Diferenciado - Poke Balls que serão adicionadas: Ocultar conteúdo Poké Ball, Great Ball, Ultra Ball, Master Ball, Saffari Ball,Premier Ball, Net Ball, Cherish Ball, Dive Ball, Lure Ball, Moon Gall, Quick Ball, Love Ball, Golden Ball, Super Ball, Heavy Ball, Love Ball, Dusk Ball, Fast Ball, Treecko's Ball, Torchic's Ball, Pikachu's Ball, Mudkip's Ball - Races: Dark, Steel e Fairy - Tv System (50%) - Kanto, Jotho, Hoeen, Sinnoh (Pokémons) (50%) - Kanto, Jotho, Hoeen, Sinnoh (Mapa) (10%) - Quests juntando Anime e Games (Nintendo & Anime) (5%) - Egg system - Npcs de Animes/Games Legendas: Vermelho e Riscado: Removido Azul: De 30 a 50% Roxo: Menos de 30% Verde: 100% (Caso tenha alguém incapaz de distinguir as cores (daltonismo) nós botamos a porcentagem do lado ) Por favor, caso seja: Mapper, Scripter, Spriter URGENTE Contate-nos
  17. Boa noite xtibianos, tudo bem? Estou aqui para fazer 1 pedido diferenciado. Gostaria de 1 sistema de resete modificado, onde o jogador level 120, vai á tal npc fala hi resete , e volta para level 8 com mana e life e um char level 8 da sua classe, e com skill e magic level zerados, porém o jogador receberá em troca prêmios que vai direto para seu depot, 2 prêmios com id 2160 "1 quantia" e 1257. Observações: Para resetar deve ter level 120 e pagar 10k ao npc.
  18. bom dia Galerinha Xtibiana estou aqui com 1pedido de um WIDGET gostaria de um 'WIDGET' top level, mais com addons estarei postando uma imagem a baixo de como ficaria o widget, estou usando o exemplo do 'WIDGET' do server 'REAL BAIAK' >: http://realbaiak.com/?subtopic=latestnews DAREI REP +++ a quem ajudar, ou tentar !!! segue a baixo a foto
  19. galera gostaria de pedir um script bem simples hoje de um ring vamos supor que um character tem 2000 de vida, 2000 de mana eu gostaria de um ring que almentasse 1000 de vida e mana quando equipado, no cado o character ficaria com 3000 de vida e 3000 de mana, alguem sabe fazer esse tipo de ring ? DAREI REP+ para quem me ajudar nesse script !!
  20. olá galera do Xtibia estou aqui hoje, para pedir 1 script simples eu axo, gostaria de um ring, que quando fosse equipado, ele almentace a vida, e a mana como ? assim, vamos supor, que o character tenha, 2000 de vida, 2000 de mana o ring quando colocado, vai deixa-lo com 3000 de vida, 3000 de mana o ring acrescenta 1000 a vida e 1000 a mana, !! darei rep + a quem ajudar, lembrando que isso é pro 8.60 - tfs 0.4
  21. Olá Xtibianos, estou aqui para pedir uma ajuda com uma talkaction que eu coloquei recentemente no meu servidor !!! coloquei a Talkaction !comprar o problema é que na parte de compra de skills, ela não está funcionando, ela faz o character relogar na hora da compra tudo certinho, cobra a quantidade de moedas para a compra de skills, mais acaba não acrecentando o skill ao player . gostaria de saber se tenho que executar algum comando no phpmyadmin, para funcionar, se alguem puder me ajudar quanto a isso darei REP+ segue a baixo a TALKACTION - lembrando que é apenas as skills's que não são acrecentadas, o resto das vendas do script estão funcionando perfeitamente !!! function onSay(cid, words, param) if (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"Você precisa está em área [PROTECT ZONE] para utilizar este comando.") return TRUE end if (getPlayerStorageValue(cid, 11548) >= os.time()) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED,"Por medidas de segurança você só pode utilizar este comando em " .. (getPlayerStorageValue(cid, 11548)-os.time()+(0)) .. " segundos.") return TRUE end if(param ~= "") and (param ~= "1kk") and (param ~= "vip10") and (param ~= "vip20") and (param ~= "golden-set") and (param ~= "full-set") and (param ~= "dragon-set") and (param ~= "demon-set") and (param ~= "exp") and (param ~= "skillclub") and (param ~= "skillsword") and (param ~= "skillaxe") and (param ~= "skilldistance") and (param ~= "skillshielding") and (param ~= "magiclevel") and (param ~= "magiclevel2") and (param ~= "skillclub2") and (param ~= "skillsword2") and (param ~= "skillaxe2") and (param ~= "skilldistance2") and (param ~= "skillshielding2") and (param ~= "removerfrag") and (param ~= "removerredskull") and (param ~= "removerblackskull") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Para comprar digite !comprar (nome do item)\nOpcoes:\n1kk = 100 crystal coins por 1 barra.\nvip10 = 10 dias de vip por 50 barras.\nvip20 = 20 dias de vip por 100 barras.\ngolden-set = golden helmet, golden armor, golden legs, golden boots por 3 barras.\nfull-set = demon helmet, magic plate armor, golden legs, mastermind shield por 5 barras.") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\ndragon-set = dragon scale helmet, dragon scale mail, dragon scale legs, dragon shield por 7 barras.\ndemon-set = demon helmet, demon armor, demon legs, demonrage sword, demon shield por 10 barras.") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nexp = 100000000 pontos de experiencia por 30 barras.\nskillclub = adiciona 1 skill club por 25 barras.\nskillsword = adiciona 1 skill sword por 25 barras.\nskillaxe = adiciona 1 skill axe por 25 barras.\nskilldistance = adiciona 1 skill distance por 25 barras.") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nskillshielding = adiciona 1 skill shielding por 25 barras.\nmagiclevel = adiciona 1 magic level por 25 barras.\nmagiclevel2 = adiciona 2 magic level por 50 barras.\nskillclub2 = adiciona 2 skills club por 50 barras.\nskillsword2 = adiciona 2 skills sword por 50 barras.\nskillaxe2 = adiciona 2 skills axe por 50 barras.\nskilldistance2 = adiciona 2 skill distance por 50 barras.\nskillshielding2 = adiciona 2 skill shielding por 50 barras.\nremoverfrag = remove todos frags por 10 barras.") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nremoverredskull = remove red skull por 15 barras.\nremoverblackskull = remove black skull por 25 barras.\n") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "O Item desejado não existe em nosso stock. Veja a cima os detalhes dos items disponíveis.") return TRUE end if(param == "") then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Para comprar digite !comprar (nome do item)\nOpcoes:\n1kk = 100 crystal coins por 1 barras.\nvip10 = 10 dias de vip por 50 barras.\nvip20 = 20 dias de vip por 100 barras.\ngolden-set = golden helmet, golden armor, golden legs, golden boots por 3 barras.\nfull-set = demon helmet, magic plate armor, golden legs, mastermind shield por 5 barras.") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\ndragon-set = dragon scale helmet, dragon scale mail, dragon scale legs, dragon shield por 7 barras.\ndemon-set = demon helmet, demon armor, demon legs, demonrage sword, demon shield por 10 barras.") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nexp = 100000000 pontos de experiencia por 30 barras.\nskillclub = adiciona 1 skill club por 25 barras.\nskillsword = adiciona 1 skill sword por 25 barras.\nskillaxe = adiciona 1 skill axe por 25 barras.\nskilldistance = adiciona 1 skill distance por 25 barras.") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nskillshielding = adiciona 1 skill shielding por 25 barras.\nmagiclevel = adiciona 1 magic level por 25 barras.\nmagiclevel2 = adiciona 2 magic level por 50 barras.\nskillclub2 = adiciona 2 skills club por 50 barras.\nskillsword2 = adiciona 2 skills sword por 50 barras.\nskillaxe2 = adiciona 2 skills axe por 50 barras.\nskilldistance2 = adiciona 2 skill distance por 50 barras.\nskillshielding2 = adiciona 2 skill shielding por 50 barras.\nremoverfrag = remove um frag por 10 barras.") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "\nremoverredskull = remove red skull por 15 barras.\nremoverblackskull = remove black skull por 25 barras.\n") return TRUE end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ if(param == "1kk") then if getPlayerItemCount(cid, 9971) >= 1 then local bag = doPlayerAddItem(cid, 1997, 1) doAddContainerItem(bag, 2160, 100) doPlayerRemoveItem(cid, 9971, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou 1kk com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "vip10") then if getPlayerItemCount(cid, 9971) >= 50 then doPlayerAddPremiumDays(cid, 10) doPlayerRemoveItem(cid, 9971, 50) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou 10 dias de [DONATE] com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "vip20") then if getPlayerItemCount(cid, 9971) >= 100 then doPlayerAddPremiumDays(cid, 20) doPlayerRemoveItem(cid, 9971, 100) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou 30 dias de [DONATE] com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "golden-set") then if getPlayerItemCount(cid, 9971) >= 3 then local bag = doPlayerAddItem(cid, 1997, 1) doAddContainerItem(bag, 2471, 1) doAddContainerItem(bag, 2466, 1) doAddContainerItem(bag, 2470, 1) doAddContainerItem(bag, 2646, 1) doPlayerRemoveItem(cid, 9971, 10) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou 1 Golden-Set com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "full-set") then if getPlayerItemCount(cid, 9971) >= 5 then local bag = doPlayerAddItem(cid, 1997, 1) doAddContainerItem(bag, 2493, 1) doAddContainerItem(bag, 2472, 1) doAddContainerItem(bag, 2470, 1) doAddContainerItem(bag, 2514, 1) doPlayerRemoveItem(cid, 9971, 15) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou 1 Full-Set com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "dragon-set") then if getPlayerItemCount(cid, 9971) >= 7 then local bag = doPlayerAddItem(cid, 1997, 1) doAddContainerItem(bag, 2506, 1) doAddContainerItem(bag, 2492, 1) doAddContainerItem(bag, 2469, 1) doAddContainerItem(bag, 2516, 1) doPlayerRemoveItem(cid, 9971, 20) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou 1 Dragon-Set com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "demon-set") then if getPlayerItemCount(cid, 9971) >= 10 then local bag = doPlayerAddItem(cid, 1997, 1) doAddContainerItem(bag, 2493, 1) doAddContainerItem(bag, 2494, 1) doAddContainerItem(bag, 2495, 1) doAddContainerItem(bag, 2520, 1) doPlayerRemoveItem(cid, 9971, 20) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou 1 Demon-Set com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "exp") then if getPlayerItemCount(cid, 9971) >= 10 then if getPlayerLevel(cid) >= 8 then doPlayerAddExperience(cid, 1000) doPlayerRemoveItem(cid, 9971, 10) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou 1kk de exp com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE end if getPlayerLevel(cid) >= 8 then doPlayerAddExperience(cid, 10000) doPlayerRemoveItem(cid, 9971, 15) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou 10kk de exp com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE end if getPlayerLevel(cid) >= 8 then doPlayerAddExperience(cid, 100000) doPlayerRemoveItem(cid, 9971, 30) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você comprou 100kk de exp com sucesso.") setPlayerStorageValue(cid,11548,os.time()+30) return TRUE end else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "magiclevel") then if getPlayerMagLevel(cid) >= 200 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter magic level acima de 200.") return TRUE end if(not isSorcerer(cid) and not isDruid(cid) and not isElderDruid(cid) and not isMasterSorcerer(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Sorcerers, Druids podem comprar magic level.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `maglevel` = `maglevel` + 1 WHERE `id` = "..pid) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "skillclub") then if getPlayerSkillLevel(cid, SKILL_CLUB) >= 350 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if not isKnight(cid) and not isEliteKnight(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Knights podem comprar skill de club.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) local club = getPlayerSkillLevel(cid, SKILL_CLUB) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (club + 1) .. ", `count` = 0 WHERE `skillid` = 1 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "skillsword") then if getPlayerSkillLevel(cid, SKILL_SWORD) >= 350 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if not isKnight(cid) and not isEliteKnight(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Knights podem comprar skill de sword.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) local sword = getPlayerSkillLevel(cid, SKILL_SWORD) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (sword + 1) .. ", `count` = 0 WHERE `skillid` = 2 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "skillaxe") then if getPlayerSkillLevel(cid, SKILL_AXE) >= 350 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if not isKnight(cid) and not isEliteKnight(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Knights podem comprar skill de axe.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) local axe = getPlayerSkillLevel(cid, SKILL_AXE) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (axe + 1) .. ", `count` = 0 WHERE `skillid` = 3 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "skilldistance") then if getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 350 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if not isPaladin(cid) and not isRoyalPaladin(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Paladins podem comprar skill de distance.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) local distance = getPlayerSkillLevel(cid, SKILL_DISTANCE) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (distance + 1) .. ", `count` = 0 WHERE `skillid` = 4 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "skillshielding") then if getPlayerSkillLevel(cid, SKILL_SHIELD) >= 350 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if(not isPaladin(cid) and not isKnight(cid) and not isRoyalPaladin(cid) and not isEliteKnight(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Paladins, Knights podem comprar skill de shield.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) local shield = getPlayerSkillLevel(cid, SKILL_SHIELD) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (shield + 1) .. ", `count` = 0 WHERE `skillid` = 5 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "magiclevel2") then if getPlayerMagLevel(cid) >= 196 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter magic level acima de 200.") return TRUE end if(not isSorcerer(cid) and not isDruid(cid) and not isElderDruid(cid) and not isMasterSorcerer(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Sorcerers, Druids podem comprar magic level.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `maglevel` = `maglevel` + 2 WHERE `id` = "..pid) return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "skillclub2") then if getPlayerSkillLevel(cid, SKILL_CLUB) >= 341 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if not isKnight(cid) and not isEliteKnight(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Knight podem comprar skill de club.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) local club = getPlayerSkillLevel(cid, SKILL_CLUB) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (club + 2) .. ", `count` = 0 WHERE `skillid` = 1 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "skillsword2") then if getPlayerSkillLevel(cid, SKILL_SWORD) >= 341 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if not isKnight(cid) and not isEliteKnight(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Knights podem comprar skill de sword.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) local sword = getPlayerSkillLevel(cid, SKILL_SWORD) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (sword + 2) .. ", `count` = 0 WHERE `skillid` = 2 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "skillaxe2") then if getPlayerSkillLevel(cid, SKILL_AXE) >= 341 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if not isKnight(cid) and not isEliteKnight(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Knights podem comprar skill de axe.") return TRUE end if getPlayerItemCount(cid, 9971) >=25 then local pid = getPlayerGUID(cid) local axe = getPlayerSkillLevel(cid, SKILL_AXE) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (axe + 2) .. ", `count` = 0 WHERE `skillid` = 3 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "skilldistance2") then if getPlayerSkillLevel(cid, SKILL_DISTANCE) >= 341 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if not isPaladin(cid) and not isRoyalPaladin(cid) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Paladins podem comprar skill de distance.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) local distance = getPlayerSkillLevel(cid, SKILL_DISTANCE) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (distance + 2) .. ", `count` = 0 WHERE `skillid` = 4 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "skillshielding2") then if getPlayerSkillLevel(cid, SKILL_SHIELD) >= 341 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode ter skill acima de 350.") return TRUE end if(not isPaladin(cid) and not isKnight(cid) and not isRoyalPaladin(cid) and not isEliteKnight(cid)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Somente Paladins, Knights e podem comprar skill de shield.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then local pid = getPlayerGUID(cid) local shield = getPlayerSkillLevel(cid, SKILL_SHIELD) doPlayerRemoveItem(cid, 9971, 25) setPlayerStorageValue(cid,11548,os.time()+0) doRemoveCreature(cid) db.executeQuery("UPDATE `player_skills` SET `value` = " .. (shield + 2) .. ", `count` = 0 WHERE `skillid` = 5 and `player_id` = " .. pid .. ";") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "removerfrag") then if getPlayerItemCount(cid, 9971) >= 10 then doPlayerRemoveItem(cid, 9971, 10) db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `unjustified` = 1 AND `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ") LIMIT 1;") setPlayerStorageValue(cid,11548,os.time()+0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você removeu seus frags com sucesso.") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "removerredskull") then if (getCreatureSkullType(cid) == SKULL_RED) == FALSE then doPlayerSendTextMessage(cid,27,"Você não está Red Skull para utilizar este comando.") return TRUE end if getPlayerItemCount(cid, 9971) >= 15 then doPlayerRemoveItem(cid, 9971, 15) db.executeQuery("UPDATE `players` SET `skulltime`=0 WHERE `id` = "..getPlayerGUID(cid)) local skullEnd = getPlayerSkullEnd(cid) doPlayerSetSkullEnd(cid, skullEnd, SKULL_NONE) setPlayerStorageValue(cid,11548,os.time()+0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você removeu sua Red Skull com sucesso.") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- if(param == "removerblackskull") then if (getCreatureSkullType(cid) == SKULL_BLACK) == FALSE then doPlayerSendTextMessage(cid,27,"Você não está Black Skull para utilizar este comando.") return TRUE end if getPlayerItemCount(cid, 9971) >= 25 then doPlayerRemoveItem(cid, 9971, 25) db.executeQuery("UPDATE `players` SET `skulltime`=0 WHERE `id` = "..getPlayerGUID(cid)) local skullEnd = getPlayerSkullEnd(cid) doPlayerSetSkullEnd(cid, skullEnd, SKULL_NONE) setPlayerStorageValue(cid,11548,os.time()+0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parabéns você removeu sua Black Skull com sucesso.") return TRUE else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não possui a quantidade necessária para comprar.") return TRUE end end end
  22. Bom pessoal, vasculhando pelo forum encontrei um talkaction de teleport, faltava algumas coisas eu adicionei com ajuda de membros mas ainda preciso de ajuda em 2 coisas para deixar o teleport perfeito, me ajudando vai estar ajudando a comunidade pois irei postar o script. 1° coisa, na verdade nem sei se é possível: deixar o player completamente paralisado durante os 10 segundos em que o player vai estar sendo teletransportado(se possível, com uma mensagem "você não pode se mover enquanto teleporta") 2° durante os 10 segundos o player fique com um efeito que só acabe quando ele for teleportado. script: Desde já obrigado. @UP @up @UP @UP
  23. Vi umas pessoas querendo esse script então como não achei no forum resolvi postar.. serve para regular os rates do seu server, exemplo: do level 30 até o 49 o Rate ml(dificuldade para UPAR) é 1 primeiro vá em config.lua procure por Rates em rateSkill deixe 1 Em creaturescript/scripts/skills (caso não tenha pasta skills crie) copie e cole qualquer script, então o renomeie para "stagesconfig" e cole isso dentro: Depois, copie e cole qualquer script, então o renomeie para "skillstageslogin" e cole isso dentro: Depois, copie e cole qualquer script, então o renomeie para "skillstagesadvance" e cole isso dentro: Depois vá em login.lua e registre as tags: registerCreatureEvent(cid, "SkillStagesLogin") registerCreatureEvent(cid, "SkillStagesAdvance") e então em creaturescripts.xml: <event type="login" name="SkillStagesLogin" event="script" value="skills/skillstageslogin.lua" /> <event type="advance" name="SkillStagesAdvance" event="script" value="skills/skillstagesadvance.lua" /> Para configurar é simples, basta ir em stagesconfig: por exemplo no fist fight {0,3},{30,2} = no level 0 o rate skill sera 3, isso só ira mudar no level 30 que o rate sera 2, configure todas as skills ao seu gosto! OBS: Testado em tfs 0.3.6(8.60) Creditos: Autor desconhecido(caso você seja o criador do escript informe e colocarei os creditos), eu pelo tópico. Espero ter ajudado.
  24. Olá pessoal do XTibia, tudo na boa? Após pesquisar muito não consegui encontrar um sistema de reset para usar no servidor de nosso cliente Demolidores então decidi fazer a junção de alguns sistemas e montei também um ranking para Gesior. Chega de blá blá blá e vamos direto ao script. 1°- Adicione a tag em seu "talkactions.xml"; <talkaction words="!resetar;!reset" event="script" value="reseting.lua"/> 2°- Adicione o arquivo "reseting.lua" ao diretório "/data/talkactions/scripts/"; function onSay(cid, words, param, channel) config = { RemainingLvl=8, exper=4200, pid=getPlayerGUID(cid), batle="yes" } function getPlayerResets(cid) resets = getPlayerStorageValue(cid,1021) if resets < 0 then resets = 0 end return resets end if (config.batle == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then doPlayerSendTextMessage(cid,22,"Você Precisa estar sem Battle para Resetar.") return TRUE end if (getPlayerStorageValue(cid, 11548) >= os.time()) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED,"Por medidas de segurança você só pode utilizar este comando em " .. (getPlayerStorageValue(cid, 11548)-os.time()+(0)) .. " segundos.") return TRUE end local healthMax, manaMax = getCreatureMaxHealth(cid), getCreatureMaxMana(cid) ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 85 and getPlayerResets(cid) == 15 then if getPlayerLevel(cid) >= 16000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 16000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 80 and getPlayerResets(cid) == 14 then if getPlayerLevel(cid) >= 15000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 15000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 70 and getPlayerResets(cid) == 13 then if getPlayerLevel(cid) >= 14000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 14000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 65 and getPlayerResets(cid) == 12 then if getPlayerLevel(cid) >= 13000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 13000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 60 and getPlayerResets(cid) == 11 then if getPlayerLevel(cid) >= 12000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 12000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 55 and getPlayerResets(cid) == 10 then if getPlayerLevel(cid) >= 11000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 11000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 50 and getPlayerResets(cid) == 9 then if getPlayerLevel(cid) >= 10000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 10000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 45 and getPlayerResets(cid) == 8 then if getPlayerLevel(cid) >= 9000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 9000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 40 and getPlayerResets(cid) == 7 then if getPlayerLevel(cid) >= 8000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 8000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 35 and getPlayerResets(cid) == 6 then if getPlayerLevel(cid) >= 7000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 7000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 30 and getPlayerResets(cid) == 5 then if getPlayerLevel(cid) >= 6000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 6000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 25 and getPlayerResets(cid) == 4 then if getPlayerLevel(cid) >= 5000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 5000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 20 and getPlayerResets(cid) == 3 then if getPlayerLevel(cid) >= 4000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 4000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 15 and getPlayerResets(cid) == 2 then if getPlayerLevel(cid) >= 3000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 3000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 10 and getPlayerResets(cid) == 1 then if getPlayerLevel(cid) >= 2000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 2000 ou mais para poder resetar.") end end ---------------------------------------------------------------------------------------------------------------------------------------- if getPlayerStorageValue(cid,1021) < 5 and getPlayerResets(cid) == 0 then if getPlayerLevel(cid) >= 1000 then setPlayerStorageValue(cid,1021,getPlayerResets(cid)+1) setPlayerStorageValue(cid,11548,os.time()+30) doPlayerAddLevel(cid, config.RemainingLvl) setCreatureMaxHealth(cid, healthMax) setCreatureMaxMana(cid, manaMax) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED) db.executeQuery("UPDATE `players` SET `reset` = `reset` + 1 WHERE `id` = "..config.pid) else doPlayerSendCancel(cid,"Você precisa ter level 1000 ou mais para poder resetar.") end end return true end 3°- Execute a query SQL para criar a coluna "reset" no banco de dados Mysql; ALTER TABLE `players` ADD `reset` BIGINT(255) NOT NULL DEFAULT '0'; 4°- Configure o "index.php" do seu Gesior para receber a página PHP; <?php $limitt = 100; $zap = $SQL->query('SELECT `name`,`level`, `reset` FROM `players` WHERE `group_id` < '.$config['site']['players_group_id_block'].' AND `name` != "Account Manager" ORDER BY `reset` DESC, `level` DESC LIMIT 100;'); $number_of_rows = 0; $main_content .= ' <center><h2>Reset Ranking</h2></center> <TABLE BORDER=0 CELLPADDING=4 CELLSPACING=1 WIDTH=100%> <tr bgcolor="#af2126"> <td><font color="white">Nome</font></td> <td><font color="white">Reset</font></td> <td><font color="white">Level</font></td> </tr> '; foreach($zap as $wynik) { if(!is_int($number_of_rows / 2)) { $bgcolor = $config['site']['darkborder']; } else { $bgcolor = $config['site']['lightborder']; } $number_of_rows++; $main_content .= ' <tr bgcolor="'.$bgcolor.'"> <td> <a href="index.php?subtopic=characters&name='.urlencode($wynik['name']).'"> <b> '.$wynik['name'].' </b></a> </td> <td> '.$wynik['reset'].' </td> <td> '.$wynik['level'].' </td> </tr> '; } $main_content .= ' </tr> </table>'; ?> Seria basicamente isto, espero que possa ter contribuído com alguém. Para alterar o numero de resets permitidos é só remover ou adicionar as linhas.
  25. Boa tarde galera xtibia, venho em meio desse post fazer 2 pedidos, spells para 8.60! 1º Spell: Séria 1 spell em aréa 3x3, onde o jogador usa a spell e quem estiver no meio da aréa da spell perde 30% de mana e 15% de life, mas o seguinte: Essa spell for ativa ela saia em aréa trés vezes, dando 3 "wave" ... A primeira tira 10% de mana e 5% de life, a segunda mesma quantia e a terceiro também. "obs: essa spell deve ter cooldown de 20 segundos" 2ª Spell: Séria uma spell de invocação, onde invoco 1 estatua e ela fica parada atacando todos que estiver no alcance de 5 sqm dela, inclusive players e monstros e que esse ataque da statua seja de target em death. "obs: essa estatua fique summonada apenas por 10 segundos " 3ª Spell: Uma spells de summon, onde summono 1 skeleton, que ajude o jogador em combate e que ele dure apenas 15 segundos, mas durante esses 15 segundos se eu usar tal comando o summon morre e eu recebo 20% de life. @XWhiteWolf
×
×
  • Criar Novo...