Jump to content

Search the Community

Showing results for tags 'crystal server'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • 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

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Sou

Found 1 result

  1. [TALKACTION] /bless para GOD's Olá venho postar pra vocês uma talkaction que vai vir acompanhada com a versão 0.1.9 do Crystal Server. Esta talkaction é um comando para GOD's e não para os players. No caso para aqueles servidores que GOD's adicionam bless ao player como eu utilizava em meu servidor. Meio que para Premium Users (VIP). Vá na pasta do seu otserv data/lib copie qualquer aquivo lua de lá, renomeie para 025-bless.lua apague o que tiver dentro e coloque isto. BLESS_FIRST = 1 BLESS_ONE = BLESS_FIRST BLESS_TWO = 2 BLESS_THREE = 3 BLESS_FOUR = 4 BLESS_FIVE = 5 BLESS_SIX = 6 BLESS_ALL = {1, 2, 3, 4, 5, 6} BLESS_LAST = BLESS_SIX BLESS_IDS = { ["first"] = BLESS_ONE, ["second"] = BLESS_TWO, ["third"] = BLESS_THREE, ["forth"] = BLESS_FOUR, ["fifth"] = BLESS_FIVE, ["pvp"] = BLESS_SIX, ["all"] = BLESS_ALL } Salve e fexe. Agora vá em data/talkactions/talkactions.xml e adicione isot lá. <talkaction log="yes" words="/bless" access="5" event="script" value="blessings.lua"/> Salve e fexe. Agora vá em data/talkactions/scripts copie qualquer arquivo de lá dê o nome a ele de blessings.lua. Apague o que tiver dentro e coloque isto. function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end local t = string.explode(param, ",") if(not t[2]) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Not enough params.") return true end local pid = getPlayerByNameWildcard(t[1]) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. t[1] .. " not found.") return true end t[2] = t[2]:lower() local blessing = BLESS_IDS[t[2]] if(not blessing) then blessing = tonumber(t[2]) if(not blessing or blessing < BLESS_FIRST or blessing > BLESS_LAST) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "This bless not found.") return true end end doPlayerAddBlessing(pid, blessing) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE) return true end Exemplo de como usar: Logue seu GOD e use /bless nome_do_player, all <-- Adiciona todas as bless ao player. /bless nome_do_player, first <-- Adiciona a primeira bless ao player. E asism por diante. Créditos Crystal Server Development Team.
×
×
  • Create New...