juanterresalmeida 0 Postado Setembro 20, 2012 Share Postado Setembro 20, 2012 tenho 1 account no meu ot com 10 chars q estao nos trainers gostaria de um script q ao abri o ot os players logasem automaticamente com 1 script ou se for mais facil com um comando /loginplayers espero q consigam FLW Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/ Compartilhar em outros sites More sharing options...
0 brun123 369 Postado Setembro 20, 2012 Share Postado Setembro 20, 2012 você quer uma talkaction que kicke todos os players online? já existe, só mudar o state do server (fechar ele e abrir logo depois, com o comando /closeserver e /openserver) Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1343041 Compartilhar em outros sites More sharing options...
0 notle2012 233 Postado Setembro 20, 2012 Share Postado Setembro 20, 2012 (editado) já tem mesmo mais se vc quer outro pega ai vai kick todos online data\talkactions\scripts\nomedoarquivo.lua function onSay(cid, words, param) local players = getPlayersOnline() for i=1, #players do doRemoveCreature(players[i]) end return true end talkactions.xml <talkaction words="!test" event="script" value="nomedoarquivo.lua"/> só troca nome do comando e nome do arquivo Editado Setembro 20, 2012 por notle2012 Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1343073 Compartilhar em outros sites More sharing options...
0 juanterresalmeida 0 Postado Setembro 20, 2012 Autor Share Postado Setembro 20, 2012 não e isso vcs intederam errado o script q eu quero é que ao falar 1 comando logue um numero de players tipo tenho 3 player off (juan1,juan2,juan3) dai ao eu falar 1 comando eles LOGAM automaticamente qualquer duvida sobre o pedido poste Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1343417 Compartilhar em outros sites More sharing options...
0 notle2012 233 Postado Setembro 21, 2012 Share Postado Setembro 21, 2012 (editado) não e isso vcs intederam errado o script q eu quero é que ao falar 1 comando logue um numero de players tipo tenho 3 player off (juan1,juan2,juan3) dai ao eu falar 1 comando eles LOGAM automaticamente qualquer duvida sobre o pedido poste ata mais essas paradas e de bot, que os cara loga vários char MAGEBOMB Editado Setembro 21, 2012 por notle2012 Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1344003 Compartilhar em outros sites More sharing options...
0 Oneshot 732 Postado Setembro 21, 2012 Share Postado Setembro 21, 2012 Traduzindo ele quer um sistema de spoof para parecer que o servidorzinho dele tem muitos jogadores. Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1344111 Compartilhar em outros sites More sharing options...
0 juanterresalmeida 0 Postado Setembro 21, 2012 Autor Share Postado Setembro 21, 2012 isso mesmo quero esse comando para parecer q meu servidor tem player mais para n perde tempo logando 100 chars queria 1 script q logue automaticamente os chars. Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1344146 Compartilhar em outros sites More sharing options...
0 Oneshot 732 Postado Setembro 21, 2012 Share Postado Setembro 21, 2012 Vai ficar querendo, abraços. Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1344197 Compartilhar em outros sites More sharing options...
0 juanterresalmeida 0 Postado Setembro 21, 2012 Autor Share Postado Setembro 21, 2012 se não for ajuda não atrapalha idiota Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1344311 Compartilhar em outros sites More sharing options...
0 Skymagnum 234 Postado Setembro 21, 2012 Share Postado Setembro 21, 2012 (editado) Nervosinho ele heim. Olha cara acho que não dá pra fazer isso em .lua. Editado Setembro 21, 2012 por Skymagnum Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1344324 Compartilhar em outros sites More sharing options...
0 brun123 369 Postado Setembro 21, 2012 Share Postado Setembro 21, 2012 (editado) se não for ajuda não atrapalha idiota ultimamente o pessoal que faz pedidos aqui no fórum anda muito abusadinho... tinha que deixar esse pessoal sem resposta pra ver se larga de ser mimado vamos aprender a respeitar, por favor? vamos aprender a procurar melhor também, porque se for só fingir que seu server tem muitos players online, basta procurar pelo infame spoofing system como o skymagnum falou, um sistema de conectar players automaticamente só poderia ser feito pelo código fonte, assim como o spoof de informações sobre players online etc Editado Setembro 21, 2012 por brun123 Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1344349 Compartilhar em outros sites More sharing options...
0 juanterresalmeida 0 Postado Setembro 21, 2012 Autor Share Postado Setembro 21, 2012 vou fala pq xinguei ele eu venho cada 5 minutos na minha pagina no xtibia e quando n tem resposta nos topico q participei eu fecho a pagina triste mais quando tem eu me deparo com uma resposta assim: Vai ficar querendo, abraços. poderia se expressar melhor oq eu falaria: não tem como criar esse script. pow n to pedindo nada mais so to deixando claro que quem começo não fui eu abraço. Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1344501 Compartilhar em outros sites More sharing options...
0 Skymagnum 234 Postado Setembro 22, 2012 Share Postado Setembro 22, 2012 Não vai funcionar. Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1344988 Compartilhar em outros sites More sharing options...
0 juanterresalmeida 0 Postado Setembro 22, 2012 Autor Share Postado Setembro 22, 2012 (editado) Não vai funcionar. pq não???????? pelo que eu vi o script ta bem montado... aproposito onde eu coloco os players que vão logar? Editado Setembro 22, 2012 por jJUANTERRES Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1345214 Compartilhar em outros sites More sharing options...
0 Oneshot 732 Postado Setembro 22, 2012 Share Postado Setembro 22, 2012 (editado) Colega, acho que você não entendeu. NÃO há como fazer isso com simples scripts programados em LUA, não é simplesmente usar uma função mirabolante chamada doLoginPlayer. Você precisa editar as sources - código-fonte - do seu servidor. E, claro, vamos usar a cabeça de cima, né? Existe uma barra de pesquisa ali que faz mágica, se você digitar o quer lá, ela te dá tópicos que já existem. Player Online Spoof Abraços Editado Setembro 22, 2012 por Oneshot Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1345313 Compartilhar em outros sites More sharing options...
0 juanterresalmeida 0 Postado Setembro 22, 2012 Autor Share Postado Setembro 22, 2012 Aff pedido não atendido e melhor fazer assim criar monte de char em 1 conta loga todos e tira o kick do ot..... podem fecha o topico Vamos la: abra data/creaturescripts/scripts crie um arquivo com o nome Magebomb e bote: local config = { msg = "Voce logo tanto numero de players.", maxMultiClients = 1, -- aki numero de players que vao logar ignoreIps = {} -- nao muda isso faz que loga e nao der erro =) } function onLogin(cid) if getPlayerGroupId(cid) >= config.allowGroupId then return TRUE end local number local playersOnline = getPlayersOnline() for _, pid in pairs(playersOnline) do local pip = getPlayerIp(pid) if cid ~= pid and getPlayerIp(cid) == pip and not isInArray(config.ignoreIps, doConvertIntegerToIp(getPlayerIp(cid))) then number = (number or 0) + 1 if players > config.acountmanager then if number > config.maxMultiClients then if getPlayerGroupId(cid) <= 1 then if isInArray(getPlaidiotayerIp(cid)) == FALSE then return FALSE, doPlayerPopupFYI(cid, config.msg) if number > config.maxMullients then end end end return TRUE end depois em creaturescripts.xml cole: <event type="login" name="Magebomb" event="script" value="magebomb.lua"/> agora abra o lib copie um arquivo e cole isso: function onSay(cid, words, param) config = { players= 1, -- numero de players que vai logar , tem que ser o mesmo que ta no actions pid=getPlayerGUID(cid), -- não mecha , isso verifica os players premium = "yes", -- se precisa ser premium pra poder usar, esse foi dificil de fazer mais eu fiz pra vc =) storage = 9696 -- nao muda } if words == '!logar" or param == "/logar" then local player = getPlayerByName(param) local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerPopupFYI(cid, "Este Jogador Não está Online Ou Não existe.") return TRUE end if(config.redskull == "no") and (getCreatureSkullType(cid) == 4) then doPlayerPopupFYI(cid,"apenas player sem red skull podem Usar Fight System.") elseif (getPlayerLevel(cid) < config.level1) then doPlayerPopupFYI(cid,"você precisa ter level " .. config.level1 .. " pra usar o fight system.") elseif (getPlayerLevel(player) < config.level2 ) then doPlayerPopupFYI(cid,"o jogador não tem level " .. config.level2 .. " para vc dar fight system.") elseif(config.prot == "yes") and (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then doPlayerPopupFYI(cid,"você precisa estar em protection zone pra usar o fight system.") elseif(config.bat == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then doPlayerPopupFYI(cid,"você precisa estar sem battler pra usar o fight system.") elseif(config.redskull == "no") and (getCreatureSkullType(player) == 4) then doPlayerPopupFYI(cid,"o outro player precisa estar sem red skull usar o fight system.") elseif(config.prot == "yes") and (getTilePzInfo(getCreaturePosition(player)) == FALSE) then doPlayerPopupFYI(cid,"o outro player precisa estar em protection zone pra usar o fight system.") elseif(config.bat == "yes") and (getCreatureCondition(player, CONDITION_INFIGHT) == TRUE) then doPlayerPopupFYI(cid,"o outro player precisa estar sem battler pra usar o fight system.") elseif(config.premium == "yes") and (not isPremium(cid)) then doPlayerPopupFYI(cid, "apenas players com premium account podem dar fight.") elseif(config.RemoveItem == "yes") and (doPlayerRemoveItem(cid, config.item, 1) == FALSE) then doPlayerPopupFYI(cid, "Desculpe,voce não tem 1 " .. getItemNameById(config.item) .. " para dar fight.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) elseif isPlayer(player) then doPlayerPopupFYI(cid,"Voce acaba de Desafiar o Player chamado " .. getPlayerName(player) .." espere ele aceitar.") setPlayerStorageValue(player, config.storage, 1) doTeleportThing(cid,config.Posplayer1) doCreatureSetSkullType(cid, 2) end return TRUE end if words == '!aceitar' or param == "!accept" then if getPlayerStorageValue(cid,config.storage) >= 1 then setPlayerStorageValue(cid, config.storage, -1) doCreatureSetSkullType(cid, 2) doTeleportThing(cid doTeleportThing(cid,config else doPlayerPopupFYI(cid, "Desculpe,nao pode logar os players.") end return TRUE end if words == '!recusar' or param == "!recuse" then if getPlayerStorageValue(cid,config.storage) >= 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, ".") setPlayerStorageValue(cid, config.storage, -1) end return TRUE end return TRUE end agora abra: data/talkactions/scripts crie um arquivo com o nome logar e bote isso: function getFixedText(cid, text, replace) local lowerText = string.lower(text) local noSpaceText = string.gsub(string.gsub(string.gsub(lowerText, "%s", ""), "%p", ""),"-", "") for w = 1, #wrongWords do wordLen = string.len(wrongWords[w]) for p = 1, string.len(text) do if(string.sub(lowerText, p, p+wordLen-1) == wrongWords[w]) then text = string.sub(text, 1, p-1) .. string.rep(replace, wordLen) .. string.sub(text, p+wordLen) end end end if(string.lower(text) == lowerText) then for c = 1, #wrongWords do if(string.find(noSpaceText, string.gsub(string.gsub(wrongWords[c], "%p", ""),"-", "")) ~= nil) then return "I want to post forbidden links.." end end end return text end --[[Channels which are not added to block: 1 - Party Channel 2 - Channel for Staff members 3 - Rule Violation Channel 4 - Channel for Counselors/Tutors 65536 - Private Chat Channel <-- Private Chat cannot be blocked with this script ]]-- function onSay(cid, words, param, channel) local fixedWords = getFixedText(cid, words, replace) if words ~= fixedWords and getPlayerAccess(cid) == 0 then if getPlayerStorageValue(cid,delay[1]) > os.time() then return doPlayerSendCancel(cid,"You are still muted for ".. getPlayerStorageValue(cid,delay[1])-os.time() .." seconds.") end setPlayerStorageValue(cid,delay[1],os.time()+delay[2]) if channel == CHANNEL_DEFAULT then doCreatureSay(cid, fixedWords, TALKTYPE_SAY) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Link: "..words.." is forbidden.") return true elseif isInArray(trade_channels, channel) then doPlayerSendTexvoceéumidiotatMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Link: "..words.." is forbidden on the trade channel.") return true elseif isInArray(blocked_channels, channel) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Link: "..words.." is forbidden.") doPlayerSendChannelMessage(cid, getCreatureName(cid), fixedWords, TALKTYPE_CHANNEL_Y, channel) return true end end return false end agora em talkaction.xml cole: <talkaction words="!logar" script="logar.lua" /> para logar fale !logar que vai apareçe quantos players voce boto no script Vamos la: abra data/creaturescripts/scripts crie um arquivo com o nome Magebomb e bote: local config = { msg = "Voce logo tanto numero de players.", maxMultiClients = 1, -- aki numero de players que vao logar ignoreIps = {} -- nao muda isso faz que loga e nao der erro =) } function onLogin(cid) if getPlayerGroupId(cid) >= config.allowGroupId then return TRUE end local number local playersOnline = getPlayersOnline() for _, pid in pairs(playersOnline) do local pip = getPlayerIp(pid) if cid ~= pid and getPlayerIp(cid) == pip and not isInArray(config.ignoreIps, doConvertIntegerToIp(getPlayerIp(cid))) then number = (number or 0) + 1 if players > config.acountmanager then if number > config.maxMultiClients then if getPlayerGroupId(cid) <= 1 then if isInArray(getPlaidiotayerIp(cid)) == FALSE then return FALSE, doPlayerPopupFYI(cid, config.msg) if number > config.maxMullients then end end end return TRUE end depois em creaturescripts.xml cole: <event type="login" name="Magebomb" event="script" value="magebomb.lua"/> agora abra o lib copie um arquivo e cole isso: function onSay(cid, words, param) config = { players= 1, -- numero de players que vai logar , tem que ser o mesmo que ta no actions pid=getPlayerGUID(cid), -- não mecha , isso verifica os players premium = "yes", -- se precisa ser premium pra poder usar, esse foi dificil de fazer mais eu fiz pra vc =) storage = 9696 -- nao muda } if words == '!logar" or param == "/logar" then local player = getPlayerByName(param) local pid = getPlayerByNameWildcard(param) if(not pid or (isPlayerGhost(pid) and getPlayerGhostAccess(pid) > getPlayerGhostAccess(cid))) then doPlayerPopupFYI(cid, "Este Jogador Não está Online Ou Não existe.") return TRUE end if(config.redskull == "no") and (getCreatureSkullType(cid) == 4) then doPlayerPopupFYI(cid,"apenas player sem red skull podem Usar Fight System.") elseif (getPlayerLevel(cid) < config.level1) then doPlayerPopupFYI(cid,"você precisa ter level " .. config.level1 .. " pra usar o fight system.") elseif (getPlayerLevel(player) < config.level2 ) then doPlayerPopupFYI(cid,"o jogador não tem level " .. config.level2 .. " para vc dar fight system.") elseif(config.prot == "yes") and (getTilePzInfo(getCreaturePosition(cid)) == FALSE) then doPlayerPopupFYI(cid,"você precisa estar em protection zone pra usar o fight system.") elseif(config.bat == "yes") and (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then doPlayerPopupFYI(cid,"você precisa estar sem battler pra usar o fight system.") elseif(config.redskull == "no") and (getCreatureSkullType(player) == 4) then doPlayerPopupFYI(cid,"o outro player precisa estar sem red skull usar o fight system.") elseif(config.prot == "yes") and (getTilePzInfo(getCreaturePosition(player)) == FALSE) then doPlayerPopupFYI(cid,"o outro player precisa estar em protection zone pra usar o fight system.") elseif(config.bat == "yes") and (getCreatureCondition(player, CONDITION_INFIGHT) == TRUE) then doPlayerPopupFYI(cid,"o outro player precisa estar sem battler pra usar o fight system.") elseif(config.premium == "yes") and (not isPremium(cid)) then doPlayerPopupFYI(cid, "apenas players com premium account podem dar fight.") elseif(config.RemoveItem == "yes") and (doPlayerRemoveItem(cid, config.item, 1) == FALSE) then doPlayerPopupFYI(cid, "Desculpe,voce não tem 1 " .. getItemNameById(config.item) .. " para dar fight.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF) elseif isPlayer(player) then doPlayerPopupFYI(cid,"Voce acaba de Desafiar o Player chamado " .. getPlayerName(player) .." espere ele aceitar.") setPlayerStorageValue(player, config.storage, 1) doTeleportThing(cid,config.Posplayer1) doCreatureSetSkullType(cid, 2) end return TRUE end if words == '!aceitar' or param == "!accept" then if getPlayerStorageValue(cid,config.storage) >= 1 then setPlayerStorageValue(cid, config.storage, -1) doCreatureSetSkullType(cid, 2) doTeleportThing(cid doTeleportThing(cid,config else doPlayerPopupFYI(cid, "Desculpe,nao pode logar os players.") end return TRUE end if words == '!recusar' or param == "!recuse" then if getPlayerStorageValue(cid,config.storage) >= 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, ".") setPlayerStorageValue(cid, config.storage, -1) end return TRUE end return TRUE end agora abra: data/talkactions/scripts crie um arquivo com o nome logar e bote isso: function getFixedText(cid, text, replace) local lowerText = string.lower(text) local noSpaceText = string.gsub(string.gsub(string.gsub(lowerText, "%s", ""), "%p", ""),"-", "") for w = 1, #wrongWords do wordLen = string.len(wrongWords[w]) for p = 1, string.len(text) do if(string.sub(lowerText, p, p+wordLen-1) == wrongWords[w]) then text = string.sub(text, 1, p-1) .. string.rep(replace, wordLen) .. string.sub(text, p+wordLen) end end end if(string.lower(text) == lowerText) then for c = 1, #wrongWords do if(string.find(noSpaceText, string.gsub(string.gsub(wrongWords[c], "%p", ""),"-", "")) ~= nil) then return "I want to post forbidden links.." end end end return text end --[[Channels which are not added to block: 1 - Party Channel 2 - Channel for Staff members 3 - Rule Violation Channel 4 - Channel for Counselors/Tutors 65536 - Private Chat Channel <-- Private Chat cannot be blocked with this script ]]-- function onSay(cid, words, param, channel) local fixedWords = getFixedText(cid, words, replace) if words ~= fixedWords and getPlayerAccess(cid) == 0 then if getPlayerStorageValue(cid,delay[1]) > os.time() then return doPlayerSendCancel(cid,"You are still muted for ".. getPlayerStorageValue(cid,delay[1])-os.time() .." seconds.") end setPlayerStorageValue(cid,delay[1],os.time()+delay[2]) if channel == CHANNEL_DEFAULT then doCreatureSay(cid, fixedWords, TALKTYPE_SAY) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Link: "..words.." is forbidden.") return true elseif isInArray(trade_channels, channel) then doPlayerSendTexvoceéumidiotatMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Link: "..words.." is forbidden on the trade channel.") return true elseif isInArray(blocked_channels, channel) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Link: "..words.." is forbidden.") doPlayerSendChannelMessage(cid, getCreatureName(cid), fixedWords, TALKTYPE_CHANNEL_Y, channel) return true end end return false end agora em talkaction.xml cole: <talkaction words="!logar" script="logar.lua" /> para logar fale !logar que vai apareçe quantos players voce boto no script sinto-lhe dizer que não houve mudança fiz tudo certo mais quando falei !logar não aconteceu nada. Link para o comentário https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/#findComment-1345423 Compartilhar em outros sites More sharing options...
Pergunta
juanterresalmeida 0
tenho 1 account no meu ot com 10 chars q estao nos trainers gostaria de um script q ao abri o ot os players logasem automaticamente com 1 script ou se for mais facil com um comando /loginplayers espero q consigam FLW
Link para o comentário
https://xtibia.com/forum/topic/194540-script-avan%C3%A7ado-tomara-que-algum-scripter-saiba-cria-lo/Compartilhar em outros sites
24 respostass a esta questão
Posts Recomendados