Ir para conteúdo

Tiago6795

Membro
  • Total de itens

    159
  • Registro em

  • Última visita

Tudo que Tiago6795 postou

  1. Boa noite pessoal, quero uma raid para Tal dia da semana e tal horario, testei este ( NÃO ESTA FUNCIONANDO ) nao funcionou, sei que o script ta para tfs 0.4 e meu OT é 10.99, porem testei alguns similares e nada também, alguem poderia me ajudar? quando eu colo no raids.xml ele executa com o tempo do raids.xml e sumona ( e quando o player mata, ele nao recebe a reward ), estou com umas raids no globalevent funcionando, porem executa todos os dias e tal hora, queria por pelo menos por semana ... globalevents.xml ( ESTE ESTÁ FUNCIONANDO ) Tanjis.lua PESSOAL, queria que esse script OU outro, sumonasse o boss, tipo, quarta feira, as 20hora, depois sexta-feira ,as 20, lembrando que ja testei o raid do Subyth e não funcionou, alguem poderia ajudar ? creio que não é dificil para vocês isso.
  2. autloot.lua error : servidor 10.99
  3. Ola pessoal, tudo bem ? coloquei como raid tanjis.xml raids.xml tanjis.lua <?xml version="1.0" encoding="UTF-8"?> <monster name="Tanjis" nameDescription="Tanjis" race="blood" experience="14500" speed="560" manacost="0"> <health now="17350" max="17350" /> <look type="446" corpse="15228" /> <targetchange interval="2000" chance="50" /> <flags> <flag rewardboss="1" /> <flag summonable="0" /> <flag attackable="1" /> <flag hostile="1" /> <flag illusionable="0" /> <flag convinceable="0" /> <flag pushable="1" /> <flag canpushitems="1" /> <flag canpushcreatures="1" /> <flag targetdistance="0" /> <flag runonhealth="60" /> </flags> <attacks> <attack name="melee" interval="2000" min="0" max="-600" /> <attack name="manadrain" interval="2500" chance="20" range="7" radius="4" target="1" min="-200" max="-600"> <attribute key="shootEffect" value="poison" /> <attribute key="areaEffect" value="carniphila" /> </attack> <attack name="ice" interval="3500" chance="27" range="7" radius="4" target="1" min="-200" max="-400"> <attribute key="shootEffect" value="ice" /> <attribute key="areaEffect" value="icearea" /> </attack> <attack name="ice" interval="3500" chance="15" range="1" radius="1" target="1" min="-100" max="-400" /> <attack name="drown" interval="2300" chance="11" range="7" radius="4" target="1" min="-200" max="-500"> <attribute key="shootEffect" value="ice" /> <attribute key="areaEffect" value="watersplash" /> </attack> <attack name="manadrain" interval="2300" chance="14" range="7" radius="7" target="0" min="-200" max="-600"> <attribute key="areaEffect" value="bubbles" /> </attack> <attack name="physical" interval="2000" chance="10" range="7" radius="1" target="1" min="-100" max="-400"> <attribute key="shootEffect" value="largerock" /> </attack> <attack name="death" interval="1200" chance="7" length="8" spread="0" min="-300" max="-800"> <attribute key="areaEffect" value="smallclouds" /> </attack> <attack name="energy" interval="2000" chance="14" length="8" spread="3" min="-200" max="-500"> <attribute key="areaEffect" value="purpleenergy" /> </attack> <attack name="speed" interval="2150" chance="16" range="7" radius="1" target="1" speedchange="-600" duration="15000" /> </attacks> <defenses armor="40" defense="40"> <defense name="healing" interval="3000" chance="40" min="800" max="1100"> <attribute key="areaEffect" value="blueshimmer" /> </defense> </defenses> <immunities> <immunity ice="1" /> <immunity paralyze="1" /> <immunity drown="1" /> <immunity fire="1" /> <immunity invisible="1" /> </immunities> <voices interval="3000" chance="200"> <voice sentence="JAUL QJELL, JAKNH JEH KENH!!" /> </voices> <elements> <element earthPercent="-20" /> <element energyPercent="-20" /> <element physicalPercent="-20" /> <element deathPercent="-20" /> </elements> <loot> <item id="15409" chance="5000" /><!-- depth ocrea --> <item id="15414" chance="20000" unique="1" /><!-- ornate mace --> <item id="15413" chance="2000" /><!-- ornate shield --> </loot> </monster> Ele sumona na raid, normal, invoca o Tanjis, mas quando o player mata, qd vai abrir o loot, da o seguinte error you're not the owner então o player não pega o loot, alguem poderia me ajudar ?
  4. Obrigado, estrava em login.lua, agradeco os 2, rep+
  5. Olá pessoal, queria saber como alterar a mensagem de login ? aquela mensagem que aparece assim que você loga no tibia no chat, não é no config.lua, creio que é em algum arquivo para compilação, alguem sabe ? ex de mensagem : aparece no chat em laranja assim que eu logo, como alterar?
  6. Bom dia pessoal, preciso de um raid que tem hora e dias da semana, e que funcione, pois ja testei uns 2 diferentes e nada, meu server é 10.99 ja testei e não adiantou raids/Obujos.xml globalevents local raids = { [1] = { name = 'RatsThais', type = 'weekly', date = {'monday'}, hour = 9, minu = 40 }, [2] = { name = 'OrcsThais', type = 'weekly', days = {'monday'}, hour = 9, minu = 35 } } local last_execsutes = {} function onThink(interval, lastExecution, thinkInterval) local static_time = os.time() for k, raid in ipairs(raids) do if (raid.type == 'weekly') then local day = os.date("%A", static_time):lower() if isInArray(raid.days, day) then local hour = tonumber(os.date("%H", static_time)) if (raid.hour == hour) then local minute = tonumber(os.date("%M", static_time)) if (raid.minu == minute) then local day_number = tonumber(os.date("%d", static_time)) if (last_execsutes[k] ~= day_number) then last_execsutes[k] = day_number doExecuteRaid(raid.name) end end end end elseif (raid.type == 'exact') then local month = tonumber(os.date("%m", static_time)) if (raid.date.month == month) then local day = tonumber(os.date("%d", static_time)) if (raid.date.day == day) then local hour = tonumber(os.date("%H", static_time)) if (raid.hour == hour) then local minute = tonumber(os.date("%M", static_time)) if (raid.minu == minute) then if (last_execsutes[k] ~= day) then last_execsutes[k] = day doExecuteRaid(raid.name) end end end end end end end return true end não da certo .. preciso para o tipo de bosses, só 1 respawn em 1 lugar a cada 1 hora, nada mais ..
  7. funcionou certinho, obrigado ! Por acaso você teria um script para por senha no cast ? @login12 Como posso por pra quando o player loga, ele mudar o cast = 0 ? pq vai que ele desloga mesmo com o cast on, então vai fica no site tambem como ele estivesse online, como posso por para quando ele deslogar ficar cast = 0 ? testei esse em creaturescript mas não funfou
  8. preciso que quando o player der /cast on atualize no banco de dados cast = 1 na tabela players, tentei mas não cosegui .. esse é o script para deixar o cast ON e tambem preciso que fique cast = 0 quando ele der cat off .. script para deixar o cast OFF o cast funciona normal, mas não atualiza o banco de dados !
  9. Bom dia pessoal, tem como eu ajustar o horario do OT com meu computador ( horário de brasília ) ? pois quero ajeitar as raids e está com outro horário o meu OT...
  10. @Vodkart agora foi ! porem da outro erro, do o comando e aparece : 10:42 Guild " Noobs" does not exists. testei com 2 guilds, da o mesmo error ... creio eu que é no select, não ? a variavel enemy guarda o id da guild certo ? não sei se está errado o metodo getGuildId(t[2]) @edit @Vodkart Obrigado, eu coloquei o system de invite pelo site e deu certo, agradeço por me ajudar a tirar esse bug, pode servir para outras pessoas, utilizei este link para adicionar pelo site : https://otland.net/threads/gesior2012-wars-on-www-tfs-1-0-only-beta-version.209357/ obrigado desde já ! rep +
  11. @Vodkart Line 8 : if player:getGuildLevel() < GUILDLEVEL_LEADER then versão de compilação :
  12. uso em otserv 10,99 error: Lua Script Error: [TalkAction Interface] data/talkactions/scripts/gwarabsolute.lua:onSay data/talkactions/scripts/gwarabsolute.lua:12: attempt to compare number with nil stack traceback: [C]: in function '__lt' data/talkactions/scripts/gwarabsolute.lua:12: in function <data/talkactions/scripts/gwarabsolute.lua:1> gwarabsolute.lua function onSay(cid, words, param) local player = Player(cid) local guild = player:getGuild() if(guild == nil) then player:sendCancelMessage("You need to be in a guild in order to execute this talkaction.") return false end local guild = getPlayerGuildId(cid) if not guild or getPlayerGuildLevel(cid) < GUILDLEVEL_LEADER then player:sendCancelMessage("You cannot execute this talkaction.") return false end local t = string.split(param, ",") if(not t[2]) then player:sendChannelMessage("", "Not enough param(s).", TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) return false end local enemy = getGuildId(t[2]) if(not enemy) then player:sendChannelMessage("", "Guild \"" .. t[2] .. "\" does not exists.", TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) return false end if(enemy == guild) then player:sendChannelMessage("", "You cannot perform war action on your own guild.", TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) return false end local enemyName, tmp = "", db.storeQuery("SELECT `name` FROM `guilds` WHERE `id` = " .. enemy) if tmp ~= false then enemyName = result.getDataString(tmp, "name") result.free(tmp) end if(isInArray({"accept", "reject", "cancel"}, t[1])) then local query = "`guild1` = " .. enemy .. " AND `guild2` = " .. guild if(t[1] == "cancel") then query = "`guild1` = " .. guild .. " AND `guild2` = " .. enemy end tmp = db.storeQuery("SELECT `id`, `started`, `ended`, `payment` FROM `guild_wars` WHERE " .. query .. " AND `status` = 0") if(tmp == false) then player:sendChannelMessage("", "Currently there's no pending invitation for a war with " .. enemyName .. ".", TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) return false end if(t[1] == "accept") then local _tmp = db.storeQuery("SELECT `balance` FROM `guilds` WHERE `id` = " .. guild) local state = result.getDataInt(_tmp, "balance") < result.getDataInt(tmp, "payment") result.free(_tmp) if(state) then player:sendChannelMessage("", "Your guild balance is too low to accept this invitation.", TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) return false end db.query("UPDATE `guilds` SET `balance` = `balance` - " .. result.getDataInt(tmp, "payment") .. " WHERE `id` = " .. guild) end query = "UPDATE `guild_wars` SET " local msg = "accepted " .. enemyName .. " invitation to war." if(t[1] == "reject") then query = query .. "`ended` = " .. os.time() .. ", `status` = 2" msg = "rejected " .. enemyName .. " invitation to war." elseif(t[1] == "cancel") then query = query .. "`ended` = " .. os.time() .. ", `status` = 3" msg = "canceled invitation to a war with " .. enemyName .. "." else query = query .. "`started` = " .. os.time() .. ", `ended` = " .. (result.getDataInt(tmp, "ended") > 0 and (os.time() + ((result.getDataInt(tmp, "started") - result.getDataInt(tmp, "ended")) / 86400)) or 0) .. ", `status` = 1" end query = query .. " WHERE `id` = " .. result.getDataInt(tmp, "id") result.free(tmp) db.query(query) broadcastMessage(getPlayerGuildName(cid) .. " has " .. msg, MESSAGE_EVENT_ADVANCE) return false end if(t[1] == "invite") then local str = "" tmp = db.storeQuery("SELECT `guild1`, `status` FROM `guild_wars` WHERE `guild1` IN (" .. guild .. "," .. enemy .. ") AND `guild2` IN (" .. enemy .. "," .. guild .. ") AND `status` IN (0, 1)") if(tmp ~= false) then if(result.getDataInt(tmp, "status") == 0) then if(result.getDataInt(tmp, "guild1") == guild) then str = "You have already invited " .. enemyName .. " to war." else str = enemyName .. " have already invited you to war." end else str = "You are already on a war with " .. enemyName .. "." end result.free(tmp) end if(str ~= "") then player:sendChannelMessage("", str, TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) return false end local frags = tonumber(t[3]) if(frags ~= nil) then frags = math.max(10, math.min(1000, frags)) else frags = 100 end local payment = tonumber(t[4]) if(payment ~= nil) then payment = math.floor(payment)+1000 tmp = db.storeQuery("SELECT `balance` FROM `guilds` WHERE `id` = " .. guild) local state = result.getDataInt(tmp, "balance") < payment result.free(tmp) if(state) then player:sendChannelMessage("", "Your guild balance is too low for such payment.", TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) return false end db.query("UPDATE `guilds` SET `balance` = `balance` - " .. payment .. " WHERE `id` = " .. guild) else payment = 0 end local begining, ending = os.time(), tonumber(t[5]) if(ending ~= nil and ending ~= 0) then ending = begining + (ending * 86400) else ending = 0 end db.query("INSERT INTO `guild_wars` (`guild1`, `guild2`, `started`, `ended`, `frags`, `payment`) VALUES (" .. guild .. ", " .. enemy .. ", " .. begining .. ", " .. ending .. ", " .. frags .. ", " .. payment .. ");") broadcastMessage(getPlayerGuildName(cid) .. " has invited " .. enemyName .. " to war till " .. frags .. " frags.", MESSAGE_EVENT_ADVANCE) return false end if(not isInArray({"end", "finish"}, t[1])) then return false end local status = (t[1] == "end" and 1 or 4) tmp = db.storeQuery("SELECT `id` FROM `guild_wars` WHERE `guild1` = " .. guild .. " AND `guild2` = " .. enemy .. " AND `status` = " .. status) if(tmp ~= false) then local query = "UPDATE `guild_wars` SET `ended` = " .. os.time() .. ", `status` = 5 WHERE `id` = " .. result.getDataInt(tmp, "id") result.free(tmp) db.query(query) broadcastMessage(getPlayerGuildName(cid) .. " has " .. (status == 4 and "mend fences" or "ended up a war") .. " with " .. enemyName .. ".", MESSAGE_EVENT_ADVANCE) return false end if(status == 4) then player:sendChannelMessage("", "Currently there's no pending war truce from " .. enemyName .. ".", TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) return false end tmp = db.storeQuery("SELECT `id`, `ended` FROM `guild_wars` WHERE `guild1` = " .. enemy .. " AND `guild2` = " .. guild .. " AND `status` = 1") if(tmp ~= false) then if(result.getDataInt(tmp, "ended") > 0) then result.free(tmp) player:sendChannelMessage("", "You cannot request ending for war with " .. enemyName .. ".", TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) return false end local query = "UPDATE `guild_wars` SET `status` = 4, `ended` = " .. os.time() .. " WHERE `id` = " .. result.getDataInt(tmp, "id") result.free(tmp) db.query(query) broadcastMessage(getPlayerGuildName(cid) .. " has signed an armstice declaration on a war with " .. enemyName .. ".", MESSAGE_EVENT_ADVANCE) return false end player:sendChannelMessage("", "Currently there's no active war with " .. enemyName .. ".", TALKTYPE_CHANNEL_R1, CHANNEL_GUILD) return false end ai eu tirei essa parte : getPlayerGuildLevel(cid) < GUILDLEVEL_LEADER então o error saiu, mas ai qualquer player vai declarar guerra, então não tem como tirar .. testei sem essa parte, e na hora de de clarar war da que a guild não existe ...
  13. o shopguild é de um htdocs de um ot 10.94 e esse meu ot é 10.99-11, mas irie criar uma cópia do shop normal mesmo e alterar as variaveis para ser o guildshop, você teria algum contato para me ajudar com alguns problemas caso necessário ? sem querer incomodar
  14. Sim, testei com 2160 que é crystal coin, e vi no items.xml, está lá também .. o erro .. caso queria ver o shop e o condigo fonte do site, ai está .. http://seeker-global.servegame.com:8090/index.php?subtopic=shopguild
  15. qd vo compra no shop, clico no item, da esse error Offer with ID 2195(id do item) doesn't exist. Please select item again. shop.php https://github.com/tiagotwos/shopguild.php/blob/master/shopguild.php
  16. usei este script e está 100% funcionando, obg pela ajuda @Alexy Brocanello rep +
  17. Estou usando esse script, para quando alguem lugar ganhar 5 dias de vip, mas não acontece nada, ele remove os dias de vip .. fala que fica 0, alguem pode ajudar ? no banco de dados, está como viptime o campo Tfs 0.4
  18. Olá pessoal, quero mudar o fundo preto do meu gesior, dos News, features e etc, são as box. http://seeker-ot.servegame.com:8090 veja lá no site, está tudo preto, não dá para ler algumas coisas ... queria mudar isso, sei que tem que procurar no basic que é o css, mas não sei qual é, tem muitas box e contets ..
  19. // ACCOUNT config $config['site']['one_email'] = 0; // one e-mail can be used only to create one account 0 / 1 $config['site']['email_days_to_change'] = 2; // how many days user need to change e-mail to account - block hackers $config['site']['newaccount_premdays'] = 3; // how many days receive new account $config['site']['access_tickers'] = 3; $config['site']['newaccount_viptime'] = 3; não da nem premdays, nem viptime qd eu crio a acc.. só quero adicionar 3 viptime e 3 premdays
  20. bom dia, eu estou atras do ot que era só pvp enforced que era me thais e ja tinha as contas configuradas q era 1/1 2/2 e 3/3, alguem sabe se tem disponível esse otserv ainda ? não encontrei..
  21. @Fir3element opa fire, beleza? desculpa incomodar de novo, o executavel está ok, so qd eu vou reiniciar o ot q qd ele volta, ele para de funfa, da fatal e trava o arquivo, mas ai vou la e troco o executavel e roda de novo, porem o war system não está funcionando, voce saberia dizer se tem as functions correta ? o error que está acontecendo de principio me perguntaram se tinha as funções doGuildAddEnemy e doGuildRemoveEnemy sabe me informar ? obg por tudo ! war.lua
  22. Boa noite pessoal, me desculpe se estou na sessão errada. Estou atrás de um script anti-afk nos trainers, pois o pessoal clica lá e da exit ... e ja tomei ban no otservlist creio eu por este motivo .. uso tfs svn 0.4 , ot versão 8.60 os tiles ja estão com o action id 9002 e 9000 aonde é o sqm que o char fica parado treinando, só da para ir para trás, do lado tem paredes e os trainers a frente, queria um script para kikar se caso ele ficasse lá parado durante 30 minutos, ele tem que SAIR do sqm dentro desses 30 min e voltar, se ficar rodando, e etc... ele será kikado do mesmo jeito, teria este script ? obrigado pela atenção desde já !
  23. ok, servidor online, vamos ver se da algum error ou algo do tipo te aviso, obrigado !
  24. irei testar e já respondo se funcionou ! obg por enquanto @Fir3element bom, testi aqui e ta dando error failed connectingto database. mysql error : can't connect to mysql server on 'localhost' (10061) (2003) e está certo o config lua, root, a senha do root e etc.. e você tem executavel 64bit com war system e cast? desculpe se é pedir muito. config.lua sqlType = "mysql" sqlHost = "localhost" sqlPort = 3306 sqlUser = "root" sqlPass = "senha"
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo