Ir para conteúdo

Pesquisar na Comunidade

Mostrando resultados para as tags ''talkaction''.

  • 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. Iae galera eu to com um script de bonus no lvl do player Ex : O Player E Lvl 100 ele fala !bonus ele recebera 1kk 100 lvl's e 1 item ! mais so podera usar uma vez então vamos la em data / talkactions / scripts / renome algum arquivo para bonuslvl.lua e adicione function onSay(cid, words) local storage = 5999 -- storage local level = 200 -- quantos levels ele vai receber local level1 = 300 -- que level precisa ser pra usar o comando local money = 100000 -- quanto de grana ele vai receber local item = 8880 -- id do item if getPlayerStorageValue(cid, storage) >= 1 then doPlayerSendTextMessage(cid, 22, "Desculpe voce ja uso o comando") return true elseif getPlayerLevel(cid,level,1) then doPlayerSendTextMessage(cid, 22, "Desculpe voce nao tem level suficiente") return true end doPlayerAddLevel(cid, level) doPlayerAddItem (cid, item, 1) setPlayerStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid, 22, "Voce recebeu 5000 lvl's e um item") return true end e em talkactions.xml <talkaction words="!bonus" script="bonuslvl.lua"/> créditos Skyligh 90 % ((Postagem e script)) renanvmp 10 % ((Pela Ideia do pedido do script))
  2. Olá Pessoal Do Fórum xTibia! Hoje Estou Aqui Para Postar Um Script Feito Por OrochiElf (Tony Plyson). Como Funciona? Ele Anda Automaticamente Com o Lugar Onde Você Marcou, Ou Seja, Você Cria Um Destino e Ele Seguirá Até Lá. Como Configurar? Para Configurar Onde Você Quer Andar, Basta Ir Adicionando a Talkaction - /walk north /walk south /walk east /walk west Como Eu Ativo/Desativo? Para Desativar, Basta Digitar - /walk on /walk off Então Vamos Lá! Primeiramente Vá Em data/talkactions/talkactions.xml e Adicione a Seguinte Tag - <talkaction words="/walk" hide="yes" event="script" value="walk.lua"/> Agora Vá Em data/talkactions/scripts, Copie Um Arquivo Qualquer e Renomeie Para walk, Coloque Isso Dentro Dele - Pronto, Agora Basta Testar e Se Divertir! Créditos - OrochiElf
  3. Versão: 3.0 Versão de tibia: 9.7+ Descrição: Como muitos sabem na versão 9.7 a tfs removeu o rank system, e o tibia também adicionou os novos estilos de diálogos. Então eu resolvi fazer um novo rank system com esse sistema. Features: - Rank system em tempo real. - Janela personalisada. - Frags rank (Mock) TAG: a <talkaction words="!rank;/rank;!ranks;/ranks" event="script" value="rank.lua"/> Script: data/talkactions/scripts/rank.lua modaldialog2 = { title = "Rank", message = "Escolha o rank que você quer visualizar:", buttons = { { id = 1, value = "Ver" }, { id = 2, value = "Cancelar" }, }, buttonEnter = 1, buttonEscape = 2, choices = { { id = 1, value = "Fist" }, { id = 2, value = "Club" }, { id = 3, value = "Sword" }, { id = 4, value = "Axe" }, { id = 5, value = "Distance" }, { id = 6, value = "Shield" }, { id = 7, value = "Fish" }, { id = 8, value = "Magic" }, { id = 9, value = "Level" }, { id = 10, value = "Frags" } }, popup = false } function callback2(cid, button, choice) if (button == 1) then local str = "" local name_now if (choice == 1) then str = "--[ Fist Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 0 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 2) then str = "--[ Club Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 1 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 3) then str = "--[ Sword Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 2 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 4) then str = "--[ Axe Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 3 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 5) then str = "--[ Distance Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 4 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 6) then str = "--[ Shield Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 5 ORDER BY `value` DESC;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 7) then str = "--[ Fish Rank ]--\n" query = db.getResult("SELECT `player_id`, `value` FROM `player_skills` WHERE `skillid` = 6 ORDER BY `value` DESC LIMIT 20;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(getPlayerNameByGUID(query:getDataString("player_id"))).." - [" .. query:getDataInt("value") .. "]" k = k + 1 until not query:next() end elseif (choice == 8) then str = "--[ Magic Rank ]--\n" query = db.getResult("SELECT `maglevel`, `name` FROM `players` WHERE `group_id` < 3 ORDER BY `maglevel` DESC LIMIT 20;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(query:getDataString("name")).." - [" .. query:getDataInt("maglevel") .. "]" k = k + 1 until not query:next() end elseif (choice == 9) then str = "--[ Level Rank ]--\n" query = db.getResult("SELECT `name`, `level`, `experience` FROM `players` WHERE `group_id` < 3 ORDER BY `experience` DESC LIMIT 20;") if (query:getID() ~= -1) then k = 1 repeat if k > 20 then break end str = str .. "\n " .. k .. ". "..(query:getDataString("name")).." - [" .. query:getDataInt("level") .. "]" k = k + 1 until not query:next() end elseif (choice == 10) then str = "--[ Kills Rank ]--\n" query = db.getResult("SELECT `p`.`name` AS `name`, COUNT(`p`.`name`) as `frags` FROM `killers` k LEFT JOIN `player_killers` pk ON `k`.`id` = `pk`.`kill_id` LEFT JOIN `players` p ON `pk`.`player_id` = `p`.`id` WHERE `k`.`unjustified` = 1 GROUP BY `name` ORDER BY `frags` DESC;") if query:getID() == -1 then str = str .. "\nNinguém matou ninguém." end if (query:getID() >= 0) then k = 1 repeat if k > 20 then break end name_now, l = query:getDataString("name"), string.len(query:getDataString("name")) str = str .. "\n " .. k ..". ".. name_now .." - [" .. query:getDataInt("frags") .. "]" k = k + 1 until not query:next() end end doShowTextDialog(cid, 2529, str) end end function onSay(cid, words, param) addDialog(modaldialog2, 1002, cid, callback2); return true end Como usar: No servidor digite /rank e selecione o tipo de rank ou skill que você deseja visualizar. Creditos: Comedinha Mock
  4. É uma talkaction que você compra skill, é fácil de configurar. pastebin.com/SVuAmS4w <talkaction words = "/buyskill" event = "script" value = "nome.lua"/> Se usa assim /buyskill nome_do_skill, quantidade.
  5. Queria um comando que desse oufit permanete pro player exemplo > eu do uma oufti pra um player , mais aquela outfit ficaria permanente com ele , quando ele mudase em Set Outfit tava lá
  6. Versão: 1.0 By Comedinha Versão suportada: 9.4+ (funciona em anteriores) Descrição: O script é o mesmo /online da tfs, porém com uma modificação em GM+, assim ajudando a identificar os membros da staff. Features: - Ao dizer /online os membros (GM+) irão ficar ao invés do level aparecendo Staff Member. TAG: <talkaction words="!online;/online" event="script" value="online.lua"/> Script: data/talkactions/scripts/online.lua function onSay(cid, words, param, channel) local strings, i, position, added, showGamemasters = {""}, 1, 1, false, getBooleanFromString(getConfigValue('displayGamemastersWithOnlineCommand')) for _, pid in ipairs(getPlayersOnline()) do if(added) then if(i > (position * 7)) then strings[position] = strings[position] .. "," position = position + 1 strings[position] = "" else strings[position] = i == 1 and "" or strings[position] .. ", " end end added = false if((not getPlayerCustomFlagValue(pid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES))) then strings[position] = strings[position] .. getCreatureName(pid) .. " [" .. getPlayerLevel(pid) .. "]" i = i + 1 added = true else if((showGamemasters or getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES) and (not isPlayerGhost(pid) or getPlayerGhostAccess(cid) >= getPlayerGhostAccess(pid)))) then strings[position] = strings[position] .. getCreatureName(pid) .. " [staff Member]" i = i + 1 added = true end end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, (i - 1) .. " player" .. (i > 1 and "s" or "") .. " online:") for i, str in ipairs(strings) do if(str:sub(str:len()) ~= ",") then str = str .. "." end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, str) end return true end Aviso: É só substituir o script original por este, ele não causará bugs. Créditos: Comedinha TFS
  7. Funciona assim: Com esse comando eu posso mudar o meu nome ou o nome de qualquer char do server estando online ou não... /rename [ADM] BBSZ, [ADM] Alemaoo Pronto o nome do char foi mudado, você só precisa relogar e curtir suas configurações ! Passo a Passo: 1º Crie um arquivo chamado changename.lua na pasta data/talkaction/scripts/ e cole isso dentro dele: 2º Vá no Data/talkation/talkacton.xml e adicione está tag: Pronto seu script está terminado! Test: Creditos: Equipe Pokemon Adventures Alemaooxd Se te ajudei da um "Rep +" Não dói não Dr.
  8. Com esse script você pode presentear os players que estão online no seu server, usando o comando /bonus ou !bonus nome do item e se for itens agrupáveis exemplo dinheiro, potions, runas, arrows, bolts e etc você coloca o numero depois de uma virgula, irá ficar assim "/bonus crystal coin, 50" você dará 50 Crystais Coin para todos os players ONLINE ! Passo a Passo: 1º Crie um arquivo chamado bonusall.lua em data/talkactions/scripts e cole isso dentro dele: 2º Vá em data/talkactions/talkactions.xml e adicione está tag: Pronto seu script está terminado! Test: Creditos: TFS Team Alemaooxd --> BRUNOCARVALHO <--- Se te ajudei da um "Rep +" Não dói não Dr.
  9. Queria um comando pra salvar o servidor inteiro personagems , house tudo só pelo comando e queria que esse comando fosse a cada meia hora USO Pda by sciler 1.9 ou Tibia 8.54
  10. Versão: 1.1 Versão testada: 9.4+ (acho que funciona em anteriores). Descrição: O script foi criado para caso os membros da staff (CM+) do servidor quiser dar um bônus a todos os players online ele pode digitar o comando e dar o premio a todos. Tag: <talkaction words="!ta;/ta" access="4" event="script" value="createitemall.lua"/> Code: data/talkactions/createitemall.lua function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end for _, pid in ipairs(getPlayersOnline()) do local t = string.explode(param, ",") local ret = RETURNVALUE_NOERROR local pos = getCreaturePosition(cid) local id = tonumber(t[1]) if(not id) then errors(false) id = getItemIdByName(t[1]) errors(true) if(not id) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Item wich such name does not exists.") return true end end amount = t[2] if(not t[2]) then amount = 1 end local item = doCreateItemEx(id, amount) if(t[3] and getBooleanFromString(t[3])) then if(t[4] and getBooleanFromString(t[4])) then pos = getCreatureLookPosition(cid) end ret = doTileAddItemEx(pos, item) else doPlayerSendTextMessage(pid, MESSAGE_STATUS_CONSOLE_BLUE, "O "..getCreatureName(cid).." deu ("..amount.."x) "..getItemNameById(id).." para todos os players online.") ret = doPlayerAddItemEx(pid, item, true) end if(ret ~= RETURNVALUE_NOERROR) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Couldn't add item: " .. t[1]) return true end doDecayItem(item) if(not isPlayerGhost(cid)) then doSendMagicEffect(pos, CONST_ME_MAGIC_RED) end end return true end Creditos: TFS Team Comedinha (Bruno Carvalho)
  11. Moderador fiz um double post sem querer por culpa da internet feixe este post por favor! Desculpa!
  12. Olá galera, vim postar o comando !quit. Ele não é tão útil, mais ajuda um pouco, exemplo: Aqueles OTS que a pessoa vai no PZ e ainda fica battle, ela quer deslogar pra logar outro char ou sair, só que ela não consegue, pois o battle ainda fica, então esse comando irá acabar com isso, basta o player chegar no PZ e falar: !quit que ele será kikado, mesmo estando com battle. PS: Esse comando só funciona quando a pessoa (o player) estiver em PZ. O script não fui eu que fiz, eu vi esse comando no FoxWorld, e fui procurar ver se tinha e só achei em um PEDIDO de outro fórum, mais tópico do script eu não achei, então venho aqui posta-lo. Chega de papo-furado e vamos a instalação do script! Pasta do seu OT/data/talkactions/scripts/quit.lua: function onSay(cid, words, param, channel) return (getTilePzInfo(getCreaturePosition(cid)) == false and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce precisa estar em PZ.") and false or doRemoveCreature(cid)) end Pasta do seu OT/data/talkactions/talkactions.xml: <talkaction words="!quit" event="script" value="quit.lua"/> Créditos: LeoXder (pelo pedido) Vodkart (pelo script) Thiagobji (por postar o script e pela tag na talkactions.xml)
  13. Autor: Mock Esse codigo simples permite que você explore todo o seu mapa em questão de minutos (ou horas), automaticamente. Existem alguns problemas, esse codigo pode facilmente gerar debug em quem usa, en tão aconselho usar somente quem tem conexão rapida, ou localhost. O funcionamento é bem simples, o script teleporta você a cada canto do mapa fazendo você liberar o mapa todo!! Como é muito teleport, e todos sabem que se você se teleportar varias vezes muito rapido, esse code tem uma config simples com a opção de mudar o delay e a quantidade de tiles que você vai pular. Na configuração padrão ele vai teleportar você para a posição 36,36,7 e vai até a 1024,1024,10 teleportando você a cada 4 blocos a cada 1 segundo, porem você pode reconfigurar a vontade. Pode repostar onde quiser e usar onde quiser contanto que mantenha os creditos no script. (Y) --Autor: Mock the bear (matheus.mtb7@gmail.com) --MTB local map = { Xmax=1024; Ymax=1024; Xstart=36; YStrart=36; Zstart=7; -- Delay=1000; Skip_tiles=4; Floors_skip=1; --Can be 1 or -1 Floors_count=3; --Start form floor Zstart and stop after be teleproted to 3 floors } function cycle(cid,x,y,z,c) if not isPlayer(cid) then return 0; end x = x+map.Skip_tiles; if x > map.Xmax then x = map.Xmax; end if (getThingFromPos({x=x,y=y,z=z,stackpos=0},false) or {}).uid ~= 0 then doTeleportThing(cid,{x=x,y=y,z=z}) end if x == map.Xmax then x = map.Xstart; y = y+map.Skip_tiles; end if y > map.Ymax then y = map.YStrart z = z+Floors_skip; c = c-1; if c <= 0 then return 0; end end addEvent(cycle,map.Delay,cid,x,y,z,c) end function onSay(cid, words, param) cycle(cid,map.Xstart,map.YStrart,map.Zstart,map.Floors_count) end --MTB
  14. Bom galera decidi postar esse talk porque todos que eu usava so dava erro e todo player de qualquer level pudia usar o comando bom ta ai: 1° crie um arquivo .lua em Pasta do se OT\data\talkactions\scripts depois renomeie o aquivo que acabou de criar para maxlevel717217 Coloque isso dentro do arquivo: Vermelho: Level que o player vai ficar apos o uso do comando Verde: Level que o player precisa para usar o comando Verde agua: Mensagem que aparecerá se o player não tiver o level nesesário para usar o comando depois vá em Pasta do se OT\data\talkactions e abra o talkactions.xml e colque: Azul: palavras que o player dirá para usar o comando Créditos:Subwat (por criar o script) Créditos: ADMDestroyer (por ter fetio o post no Xtibia)
  15. Bom esse sistema é Simples, ele funciona assm: Se eu executar o comando "/rename DinoAdmin, Dino" Eu mudo meu nome de DinoAdmim para Dino. Esse sistema serve para voce quem tem um servidor Grande e Com Muitas accounts Criadas... Digamos que entre um GM Novo no seu server e para voce não ter que procurar o nome dele no meio de mais de 5 mil acounts para mudar voce pode esta mudando o Nome dele pelo servidor executando o comando "/rename" vamos parar de enrrolar e vamos lá... 1° Vá em data/talkaction/scripts/ Crie Um Arquivo Chamado "account.lua" e cole isso dentro: Agora em Data/talkation/talkacton.xml/ cole esta tag: <talkaction log="yes" words="/rename" access="5" event="script" value="account.lua"/> Agora voce não preisa Procurar conta por conta é so mudar por comado. Veja: 11:56 /rename trade, [GM] Trade 11:56 You have changed trade's name to [GM] Trade. Espero que gostem do script. Creditos: Equipe Pokemon Adventures DinoAdmin Nessa Henke
  16. Crie um arquivo dentro da pasta talkactions/scripts com o nome de merendagratis.lua e coloque o seguinte: Em Talkactions.xml coloque a seguinte linha: Caso queira colocar um preço nos foods, altere a seguinte linha(mas a intenção é food grátis mesmo sem exhausted): Espero ter Ajudado! AJUDEI? REP+
  17. Este é um Script em que seu servidor pode ser reiniciado com segurança, sendo salvo e todos os jogadores serão avisados no Server Log! Vá até sua pasta Talkactions/scripts, crie um Arquivo com o nome de reiniciar.lua e coloque o seguinte dentro do mesmo: Em Talkactions.xml coloque a seguinte linha: Basta fazer o download do arquivo abaixo e colocar em sua pasta prinicipal do servidor (onde fica o executável que liga o servidor), Segue abaixo o Download do mesmo: PS: Caso você use Auto Restarter o script não terá funcionalidade! Créditos: MKBRABSOLUTE NILLER Espero ter ajudado! AJUDEI? REP+
  18. Versão do Script: V0.1 By Comedinha Versão testada: 9.4+ (pode funcionar em versões anteriores). Descrição: Quem não se lembra do velho Notice System feito pelo esk? Aquele que toda a noticia nova você tinha que abrir o txt e escrever nele as novidades? Agora não precisa mais disso. Nota: O script no momento está mais parecido com um ticker system do que um notice system. Novas Funções: - Adicionar noticias em tempo real para todo o servidor com a data. - Limpar a janela de noticias em tempo real para todo o servidor. TAG: <talkaction words="!notice;!news;/notice;/news" event="script" value="notice.lua"/> Script: local config = { add = {"add", "adicionar", "new"}, clean = {"clean", "limpar"} } function onSay(cid, words, param, channel) local t = string.explode(param, ",") if(table.isStrIn(param, config.add)) then if getPlayerGroupId (cid) >= 5 then file = io.open('data/txt/notice.txt','a+') if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end notice = file:write("\n"..getPlayerName(cid).." at " .. os.date("%d %B %Y - %X ", os.time()) .."\n"..t[2].."\n") file:close() return true end elseif(table.isStrIn(param, config.clean)) then if getPlayerGroupId (cid) >= 5 then file = io.open('data/txt/notice.txt','w') if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end notice = file:write("Server News\n") file:close() return true end return false end file = io.open('data/txt/notice.txt','r') notice = file:read(-1) doShowTextDialog(cid, 7528, notice) file:close() return true end Aviso: Na pasta data crie uma pasta chamada txt e dentro dela um arquivo chamado notice.txt. Após a instalação do script dentro do servidor digite /notice clean para não ter problemas futuros. Como usar: Para ver as noticias digite /notice Para adiconar noticias digite /notice add, (texto) Para limpar a janela de noticias digite /notice clean Créditos: Esk Comedinha (Bruno Carvalho)
  19. Como o Nome Diz, Ele Serve Para Mudar Seu Nome Dentro Do Jogo. Vá Em data/talkactions/scripts, Copie Um Arquivo, Renomeie-o Para changename.lua, e Cole Isso Nele - Em talkactions.xml Adicione Essa Tag - <talkaction words="!changename;/changename;!namechange;/namechange" script="changename.lua" /> Créditos - Ratser
  20. Olá Pessoal, acabo de inventar um comando chamado /falar, ai quando você o usa, aparece uma mensagem personalizada do jeito que você quiser: Então vamos ao script! 1° - Vá em data/talkactions/scripts, adicione um arquivo chamado falar.lua e coloque isso dentro de la: 2° - Depois vá em data/actions/actions.xml, abra em forma de bloco de notas, e adicione a seguinte linha: Então é isso pessoal, espero que tenham gostado
  21. Tipo: Talkaction. Testado: Não. Breve explicação É uma talkaction, que serve para que quando você está morrendo você use ela, e então quando você morrer, você fala !return, e volta para aonde você morreu ou salvou, é simples assim. Fácil configuração ​ Primeiro vá em data depois em lib e em seguida na pasta 050-FUNCTION então adicione isso lá: MAIN_CONFIG = { POSITION_STORAGE_X = 10090, POSITION_STORAGE_Y = 10091, POSITION_STORAGE_Z = 10092, STORAGE_CHECK = 10093, STORAGE_TIME = 10094, MESSAGE_WAIT = "You need wait " .. getPlayerStorageValue(cid, MAIN_CONFIG.STORAGE_TIME) - os.time() .. " seconds.", MESSAGE_SAVE = "You sucefully save your position, if your down say !return.", MESSAGE_RETURNING = "You has been teleported for you save position", MESSAGE_BATTLE = "?", MESSAGE_PROTECTION = "?", MESSAGE_USING = "?", } e isso também: function resetStatusInTime(cid) local P_ID = getPlayerGUID(cid) local PLAYER = getPlayerByGUID(P_ID) addEvent(function() if isCreature(PLAYER) then setPlayerStorageValue(PLAYER, MAIN_CONFIG.STORAGE_TIME, 0) setPlayerStorageValue(PLAYER, MAIN_CONFIG.STORAGE_CHECK, 0) else db.executeQuery("DELETE FROM `player_storage` WHERE `key` = 10093 AND `player_id` = " .. getPlayerGUID(PLAYER) .. ";") db.executeQuery("DELETE FROM `player_storage` WHERE `key` = 10094 AND `player_id` = " .. getPlayerGUID(PLAYER) .. ";") end end, 360 * 1000) end Não mecha em nada que não tenha MESSAGE agora vá na pasta talkactions crie 2 arquivos um chamado returnPos e coloque isso dentro: function onSay(cid, words, param, channel) local RETURN_PLAYER_POS = {x = getPlayerStorageValue(cid, MAIN_CONFIG.POSITION_STORAGE_X), y = getPlayerStorageValue(cid, MAIN_CONFIG.POSITION_STORAGE_Y), z = getPlayerStorageValue(cid, MAIN_CONFIG.POSITION_STORAGE_Z)} if getPlayerStorageValue(cid, MAIN_CONFIG,STORAGE_CHECK) > 0 then if getCreatureCondition(cid, CONDITION_INFIGHT) then if getTileInfo(getThingPos(cid)).pz then doTeleportThing(cid, RETURN_PLAYER_POS) doPlayerSendTextMessage(cid, 27, MAIN_CONFIG.MESSAGE_RETURNING) setPlayerStorageValue(cid, MAIN_CONFIG.POSITION_STORAGE_X, 0) setPlayerStorageValue(cid, MAIN_CONFIG.POSITION_STORAGE_Y, 0) setPlayerStorageValue(cid, MAIN_CONFIG.POSITION_STORAGE_Z, 0) setPlayerStorageValue(cid, MAIN_CONFIG.STORAGE_CHECK, 0) setPlayerStorageValue(cid, MAIN_CONFIG.STORAGE_TIME, 0) else doPlayerSendCancel(cid, MAIN_CONFIG.MESSAGE_PROTECTION) end else doPlayerSendCancel(cid, MAIN_CONFIG.MESSAGE_BATTLE) end end return true end e o outro savePos e coloque isso dentro: function onSay(cid, words, param, channel) if getPlayerStorageValue(cid, MAIN_CONFIG.STORAGE_TIME) <= os.time() then if getPlayerStorageValue(cid, MAIN_CONFIG.STORAGE_CHECK) <= 0 then setPlayerStorageValue(cid, MAIN_CONFIG.POSITION_STORAGE_X, getThingPos(cid).x) setPlayerStorageValue(cid, MAIN_CONFIG.POSITION_STORAGE_Y, getThingPos(cid).y) setPlayerStorageValue(cid, MAIN_CONFIG.POSITION_STORAGE_Z, getThingPos(cid).z) doPlayerSendTextMessage(cid, 27, MAIN_CONFIG.MESSAGE_SAVE .. "You have 360 seconds for this.") doSendMagicEffect(getThingPos(cid), 28) setPlayerStorageValue(cid, MAIN_CONFIG.STORAGE_CHECK, 1) setPlayerStorageValue(cid, MAIN_CONFIG.STORAGE_TIME, os.time() + 360) resetStatusInTime(cid) else doPlayerSendCancel(cid, MAIN_CONFIG.MESSAGE_USING) end else doPlayerSendCancel(cid, MAIN_CONFIG.MESSAGE_WAIT) end return true end qlr erro posta ai, fiz rapido o script e o topico tbm, ent vlw flws, se ti tbm sapora ai foi mals, vlw flws, ta lgd, flws e vlw.
  22. Bom, eu queria um comando que a gente desse em um player, pode ser com /ban nickname que tirasse 20% do level do player (parecido com o Bronson server só que em vez de 10% 20% e banisse por 1 dia apenas. por que meu ot é meio de war. Se eu for banir por 7 dias eles não vão entrar mais. E se tiver também quando o player for banido aparecer uma mensagem falando: O jogar (nickame) Foi banido por 1 dia e perdeu 20% dos seus leveis. Obrigado pessoal do xtibia! vocês tem me ajudado bastante! ^^
  23. bom, como no meu ot existe mana gem/hp gem, gostaria de um script que ao falar !charinfo, aparecesse as seguintes informaçoes HP Max Mana Max Level ~~ o segundo eu não sei se é um script, mas queria que ao dar look em um tutor, aparecesse You see xxxxx He is a druid and Tutor..
  24. Olá Queridos e Queridas XTIBIANOS(AS)! Sei que há alguns scripts de War System aqui, mas estou trazendo o mais usado na atualidade pelos diversos servidores global full, é war system, com escudinhos, completo, com página gesior e livre de erros! Segue Abaixo o Link do Download com o que há necessário para o script funcionar. OBS: Também contém explicação de instalação do mesmo! Download/Scan: Espero que gostem! Ajudei? REP+
×
×
  • Criar Novo...