Ir para conteúdo

Lokozoido

Membro
  • Registro em

  • Última visita

Tudo que Lokozoido postou

  1. Olá,Galera do T.K,estou com 1 grande problema! Tou com 1 poketibia Via site (no host) e eu fiz tudo certinho na hora de criar o site,só que quando o player cria a conta dele a senha dele muda automaticamente! eu criei 1 e fico assim Login:test524 Senha:1cf8024d4706dc41529dac29f645444e99623a1a mais a senha eu botei:test123 só que trocou automaticamente!
  2. Olá preciso de uma script que o player fala !Save e salva o char dele!
  3. O meu já tem isso,só que do mesmo geito não pega o !sellhouse
  4. Olá, galera do t.k! Estou precisando de uma script de comando !sellhouse o player fala !sellhouse nome do player ai ele da trade com a house! tipo !sellhouse test ai ele da trade com 1 documento da casa e o player da trade com o intem que ele queria dar na house!
  5. Pasta do servidor/Mods/AntiBot.Xml <?xml version="1.0" encoding="UTF-8"?> <mod name="AntiBot System" version="5.0" author="EddyHavoc" contact="http://tibiaking.com/forum/user/24639-eddyhavoc/"enabled="yes"> <config name="check_system"><![CDATA[ config = { code = 999, ptime = 998, ttime = 997, nick = false, afk = true, afks = 38417, lvl = 60, nologout = true, guild = true, distance = 10 } afk = { time = 3, -- Seconds say_events = {} } function randomCode() return math.random(1000, 9999) end function SayText(cid) if isPlayer(cid) == TRUE then if afk.say_events[getPlayerGUID(cid)] ~= nil then if isPlayer(cid) == TRUE then doSendAnimatedText(getPlayerPosition(cid),"AFK", math.random(01,255)) end afk.say_events[getPlayerGUID(cid)] = addEvent(SayText, afk.time * 1000 / 2, cid) end end return TRUE end function czas(timeDiff) local dateFormat = { {"day", timeDiff / 60 / 60 / 24}, {"hour", timeDiff / 60 / 60 % 24}, {"minute", timeDiff / 60 % 60}, {"second", timeDiff % 60} } local out = {} for k, t in ipairs(dateFormat) do local v = math.floor(t[2]) if(v > 60) then table.insert(out, (k < #dateFormat and (#out > 0 and ', ' or '') or ' and ') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or '')) elseif(v > 0) then table.insert(out, (k < #dateFormat and (#out > 0 and ', ' or '') or '') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or '')) end end return table.concat(out) end function check(cid, target) local code = randomCode() doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You check "..getCreatureName(target)..".") doPlayerSendTextMessage(target, MESSAGE_STATUS_WARNING, "[AntiBot]: "..(config.nick == true and getCreatureName(cid) or "Someone").." check you. You must write /check "..code.." if you don't want be banished. You have only 15 minutes.") setPlayerStorageValue(target, config.code, code) setPlayerStorageValue(target, config.ttime, os.time() + (3 * 60 * 60)) setPlayerStorageValue(cid, config.ptime, os.time() + (6 * 60 * 60)) addEvent(function() if(isPlayer(target) == false) then return false elseif(getPlayerStorageValue(target, config.code) == 0) then return false end doPlayerSendTextMessage(target, MESSAGE_STATUS_WARNING, "[AntiBot]: You have only 1 minute. Please write /check "..getPlayerStorageValue(target, config.code)..".") addEvent(function() if(isPlayer(target) == false) then return false elseif(getPlayerStorageValue(target, config.code) == 0) then return false end doAddAccountBanishment(getPlayerAccountId(target), target, os.time() + 48 * 3600, 12, 2, 'Banished by AntiBot System', 0) doRemoveCreature(target) end, 60 * 1000, {target = target, config = config}) end, 14 * 60 * 1000, {target = target, config = config, cid = cid}) end function antibotGuildChange(cid, type) if(type == "on") then db.executeQuery("UPDATE guilds SET checkbot=1 WHERE id="..getPlayerGuildId(cid).." LIMIT 1;") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Now members of your guild can't check players from them.") elseif(type == "off") then db.executeQuery("UPDATE guilds SET checkbot=0 WHERE id="..getPlayerGuildId(cid).." LIMIT 1;") doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Now members of your guild can check players from them.") end return true end function antibotGuildCheck(cid, target) if(getPlayerGuildId(cid) == 0) then return true elseif(getPlayerGuildId(target) == 0) then return true elseif(getPlayerGuildId(target) ~= getPlayerGuildId(cid)) then return true end local result = db.getResult("SELECT * FROM guilds WHERE id="..getPlayerGuildId(cid).." LIMIT 1;") if(result:getDataInt("checkbot") == 1) then return false else return true end end ]]></config> <talkaction words="/check" event="buffer"><![CDATA[ domodlib('check_system') local t = string.explode(param, ",") if(param == "") then return doPlayerPopupFYI(cid, "Welcome in AntiBot Information.\nScript author: EddyHavoc\nScript Version: 1.1\n\nMini tutorial:\n/check nick - if you want check player with name nick\n/check code - if someone check you\n\nYou can check next player "..((getPlayerStorageValue(cid, config.ptime) - os.time()) > 0 and "after "..czas(getPlayerStorageValue(cid, config.ptime) - os.time()) or "now")..".\nYou can be check "..((getPlayerStorageValue(cid, config.ttime) - os.time()) > 0 and "after "..czas(getPlayerStorageValue(cid, config.ttime) - os.time()) or "now")..".") elseif(t[1] == "guild") then if(config.guild == false) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not use this function.") elseif(not t[2]) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Use it /check guild, on/off.") elseif(t[2] == "on" and getPlayerGuildLevel(cid) == GUILDLEVEL_LEADER) then return antibotGuildChange(cid, "on") elseif(t[2] == "off" and getPlayerGuildLevel(cid) == GUILDLEVEL_LEADER) then return antibotGuildChange(cid, "off") else return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Invalid param or you aren't leader.") end elseif(isNumber(param) == true) then if(getPlayerStorageValue(cid, config.code) < 1) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: If you want check code, you must be checked by other player.") elseif(getPlayerStorageValue(cid, config.code) ~= tonumber(param)) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Invalid code.") end setPlayerStorageValue(cid, config.code, 0) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Code is correct.") return true else if(getPlayerByNameWildcard(param) == nil) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: Target not found.") elseif(getPlayerByNameWildcard(param) == tonumber(cid)) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check yourself.") elseif(getTileInfo(getCreaturePosition(cid)).protection == true) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check players if you are in protection zone.") elseif(isNumber(config.lvl) and getPlayerLevel(cid) < config.lvl) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not use this system if your level is lover that "..config.lvl..".") elseif(getTileInfo(getCreaturePosition(getPlayerByNameWildcard(param))).protection == true) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this players, because "..(getPlayerSex(getPlayerByNameWildcard(param)) == 0 and "she" or "he").." is in protection zone.") elseif(config.afk and getPlayerStorageValue(cid, config.afks) > 0) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check players if you are afk.") elseif(config.afk and getPlayerStorageValue(getPlayerByNameWildcard(param), config.afks) > 0) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this players, because "..(getPlayerSex(getPlayerByNameWildcard(param)) == 0 and "she" or "he").." is afk.") elseif(getPlayerStorageValue(cid, config.ptime) > os.time()) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You must rest if you want check next player.") elseif(getPlayerStorageValue(getPlayerByNameWildcard(param), config.ttime) > os.time()) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this player.") elseif((getTileInfo(getCreaturePosition(cid)).nologout or getTileInfo(getCreaturePosition(getPlayerByNameWildcard(param))).nologout) and config.nologout == true) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this player.") elseif(antibotGuildCheck(cid, getPlayerByNameWildcard(param)) == false and config.guild) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this player.") elseif(getDistanceBetween(getCreaturePosition(cid, getCreaturePosition(getPlayerByNameWildcard(param)) > config.distance or config.distance == 0) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "[AntiBot]: You can not check this player.") end check(cid, getPlayerByNameWildcard(param)) end ]]></talkaction> <event type="combat" name="AFK_Protection" event="script"><![CDATA[ domodlib('check_system') function onCombat(cid, target) if(isPlayer(target) == true) then if(getPlayerStorageValue(target, config.afks) == 1) then return false end end return true end]]></event> <event type="login" name="AFK_Login" event="script"><![CDATA[ domodlib('check_system') function onLogin(cid) if(getPlayerStorageValue(cid, config.afks) > 0) then setPlayerStorageValue(cid, config.afks, 0) end registerCreatureEvent(cid, "AFK_Protection") registerCreatureEvent(cid, "AFK_Login") registerCreatureEvent(cid, "AFK_Logout") return true end]]></event> <event type="logout" name="AFK_Logout" event="script"><![CDATA[ domodlib('check_system') function onLogout(cid) if(getPlayerStorageValue(cid, config.afks) == 1) then return false end return true end]]></event> <talkaction words="!afk" event="buffer"><![CDATA[ domodlib('check_system') afkCheck = getPlayerStorageValue(cid, config.afks) if (param == "on") then if(getCreatureCondition(cid, CONDITION_INFIGHT) == true) then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You are infight.") end if (afkCheck == -1) then if (isPlayer(cid) == TRUE) then doSendAnimatedText(getPlayerPosition(cid),"AFK", math.random(01,255)) end afk.say_events[getPlayerGUID(cid)] = addEvent(SayText, afk.time * 1000, cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Agora voce esta AFK.") doCreatureSetNoMove(cid, true) setPlayerStorageValue(cid, config.afks, 1) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce ja esta AFK.") end elseif (param == "off") then stopEvent(afk.say_events[getPlayerGUID(cid)]) afk.say_events[getPlayerGUID(cid)] = nil doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Bem Vindo de volta!") doCreatureSetNoMove(cid, false) setPlayerStorageValue(cid, config.afks, -1) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") end ]]></talkaction> </mod>
  6. Já tentei,só q aqui não funcionou a script
  7. Más tem pc que não Roda OTCLIENT
  8. Actions XML <action itemid="2580" event="script" value="tools/fishing.lua" allowfaruse="1"/> Fishing.lua local fishing = { ["Magikarp"] = {skill = 0, level = -2}, ["Qwilfish"] = {skill = 18, level = 3}, ["Remoraid"] = {skill = 16, level = 2}, ["Staryu"] = {skill = 22, level = 6}, ["Tentacool"] = {skill = 20, level = 7}, ["Goldeen"] = {skill = 17, level = 5}, ["Krabby"] = {skill = 14, level = 2}, ["Horsea"] = {skill = 16, level = 3}, ["Poliwag"] = {skill = 15, level = 2}, ["Marill"] = {skill = 21, level = 3}, ["Azumarill"] = {skill = 37, level = 16}, ["Kingler"] = {skill = 35, level = 14}, ["Seaking"] = {skill = 28, level = 11}, ["Starmie"] = {skill = 49, level = 20}, ["Chinchou"] = {skill = 23, level = 6}, ["Poliwhirl"] = {skill = 27, level = 9}, ["Seadra"] = {skill = 41, level = 15}, ["Lanturn"] = {skill = 38, level = 14}, ["Octillery"] = {skill = 30, level = 9}, ["Corsola"] = {skill = 46, level = 16}, ["Blastoise"] = {skill = 50, level = 30}, ["Omastar"] = {skill = 60, level = 100}, ["Marill"] = {skill = 60, level = 100}, ["Kabuto"] = {skill = 70, level = 100}, ["Kabutops"] = {skill = 80, level = 100}, ["Gyarados"] = {skill = 80, level = 100}, ["Tentacruel"] = {skill = 80, level = 100}, ["Shiny Gyarados"] = {skill = 200, level = 100}, ["Shiny Tentacruel"] = {skill = 200, level = 100}, ["Vaporeon"] = {skill = 90, level = 100}, ["Kingdra"] = {skill = 120, level = 100}, ["Shiny Blastoise"] = {skill = 200, level = 100}, ["Shiny Tentacruel"] = {skill = 200, level = 100}, ["Shiny Gyarados"] = {skill = 200, level = 100}, ["Shellder"] = {skill = 1, level = 100}, ["Seel"] = {skill = 20, level = 100}, ["Dewgong"] = {skill = 80, level = 100}, ["Cloyster"] = {skill = 80, level = 100}, ["Shiny Kyogre"] = {skill = 200, level = 100}, } local storage = 15458 local bonus = 1 local limite = 200 local function doFish(cid, pos, ppos, chance, interval, number) if not isCreature(cid) then return false end if getThingPos(cid).x ~= ppos.x or getThingPos(cid).y ~= ppos.y then return false end if getPlayerStorageValue(cid, storage) ~= number then return false end doSendMagicEffect(pos, CONST_ME_LOSEENERGY) local peixe = 0 local playerpos = getClosestFreeTile(cid, getThingPos(cid)) local fishes = {} local randomfish = "" --alterado!! if getPlayerSkillLevel(cid, 6) < limite then doPlayerAddSkillTry(cid, 6, bonus) end for a, b in pairs (fishing) do if getPlayerSkillLevel(cid, 6) >= b.skill then table.insert(fishes, a) end end if math.random(1, 10) <= chance then if getPlayerSkillLevel(cid, 6) < limite then doPlayerAddSkillTry(cid, 6, bonus) end randomfish = fishes[math.random(#fishes)] peixe = doSummonCreature(randomfish, playerpos) if not isCreature(peixe) then addEvent(doFish, interval, cid, pos, ppos, chance, interval, number) return true end doSetMonsterPassive(peixe) doWildAttackPlayer(peixe, cid) if #getCreatureSummons(cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 173) doChallengeCreature(getCreatureSummons(cid)[1], peixe) else doSendMagicEffect(getThingPos(cid), 173) doChallengeCreature(cid, peixe) end return true end addEvent(doFish, interval, cid, pos, ppos, chance, interval, number) return true end local waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825} function onUse(cid, item, fromPos, itemEx, toPos) if getPlayerGroupId(cid) == 11 then return true end local checkPos = toPos checkPos.stackpos = 0 if getTileThingByPos(checkPos).itemid <= 0 then doPlayerSendCancel(cid, '!') return true end if not isInArray(waters, getTileInfo(toPos).itemid) then return true end if (getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 63215) >= 1) and not canFishWhileSurfingOrFlying then doPlayerSendCancel(cid, "You can't fish while surfing/flying.") return true end if isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then doPlayerSendCancel(cid, "You can\'t fish while surfing neither flying above water.") return true end if getTileInfo(getThingPos(getCreatureSummons(cid)[1] or cid)).protection then doPlayerSendCancel(cid, "You can't fish pokémons if you or your pokémon is in protection zone.") return true end if not tonumber(getPlayerStorageValue(cid, storage)) then local test = io.open("data/sendtobrun123.txt", "a+") local read = "" if test then read = test:read("*all") test:close() end read = read.."\n[fishing.lua] "..getCreatureName(cid).." - "..getPlayerStorageValue(cid, storage).."" local reopen = io.open("data/sendtobrun123.txt", "w") reopen:write(read) reopen:close() setPlayerStorageValue(cid, storage, 1) end setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1) if getPlayerStorageValue(cid, storage) >= 800 then setPlayerStorageValue(cid, storage, 1) end local delay = 3500 - getPlayerSkillLevel(cid, 6) * 25 local chance = 5.2 + getPlayerSkillLevel(cid, 6) / 9.5 doFish(cid, toPos, getThingPos(cid), chance, delay, getPlayerStorageValue(cid, storage)) return true end
  9. Olá,estou com 1 problema muito sério! tenho 1 servidor de poketibia e os players uzam bot,e como são muitos players,fica foda de dar goto em cada 1 pra ve se tá de BOT ou não então eu queria criar 1 client Anti Bot(não da pra abrir nenhum bot no client)
  10. Olá galera do T.K Estou com 1 servidor de poketibia e queria que quando CM,ADM ou GM tivesse por cima de onde o player tiver pescando ele não conseguiria pescar Exemplo,eu to pescano ai o ADM fica de ghost onde eu to pescano,ai quando ele vai no lugar de onde a var ta ino,ai não dava mais escar! tipo otpokemon,quando um player tá pescano normal,chega outro por surf e fica encima da onde ele ta jogano a vara,ai n tem como +pescar
  11. Lokozoido postou uma resposta no tópico em Suporte Tibia OTServer
    Aqui não da pra marcar como melhor resposta
  12. Lokozoido postou uma resposta no tópico em Suporte Tibia OTServer
    Vlw funcionou direitinho
  13. Lokozoido postou uma resposta no tópico em Suporte Tibia OTServer
    não funcionou :/ não da nem 1 erro no distro
  14. Lokozoido postou uma resposta no tópico em Suporte Tibia OTServer
    Olá,galera estou com uma grande dificuldade tou com 1 poketibia e queria fazer 1 area staff ingual do OTPOKEMON! só staff pode passar pelo piso
  15. Olá,eu tou ah um tempo com uma dificuldade Tenho 1 servidor de POKETIBIA e queria que ele salva-se o serve e desliga-se e liga-se novamente todo dia as 5:00 Tipo otpokemon. Avisa quando tiver faltando os minutos e desliga o server e liga novamente automaticamente!
  16. tava des das 10:00 tentano fazer o zombie event,e até agora nada Emoticon frown ai derrepente eu religo o serve e da isso,quem sabe arrumar? OBS:Já apaguei tudo as coisa que eu tava fazendo do zombie event!

Informação Importante

Confirmação de Termo