Tudo que Fir3element postou
-
[Talkaction] Shop System by SkyDangerous
Da uma olhada nas últimas linhas do script, algo diferente ?
-
[ Action ] Addons Em Quests
Acho que arrumei, Fiz um aqui também, bem menor, addons = { {female = 128, male = 136, itemID = 8913, storage = 1500, msg = "You have found the citizen addon full."}, -- Citizen {female = 129, male = 137, itemID = 8914, storage = 1600, msg = "You have found the hunter addon full."}, -- Hunter {female = 138, male = 130, itemID = 8915, storage = 1700, msg = "You have found the mage addon full."}, -- Mage {female = 139, male = 131, itemID = 8916, storage = 1800, msg = "You have found the knight addon full."} -- Knight } function onUse(cid, item) for _, v in ipairs(addons) do if item.uid == v.itemID then queststatus = getPlayerStorageValue(cid, v.storage) if queststatus == -1 then doPlayerSendTextMessage(cid, 22, v.msg) doPlayerAddOutfit(cid, v.female, 3) doPlayerAddOutfit(cid, v.male, 3) setPlayerStorageValue(cid, v.storage, 1) else doPlayerSendTextMessage(cid, 22, "It's empty.") end end end return true end
-
[talkaction] !comprar skill/magiclevel
Nome: Comprar skill/magic level Versão testada: TFS 0.3.6pl1 / 0.4 / 0.3.7 Créditos: fireelement Exemplo de uso: !comprar club !comprar magiclevel Vá em data/talkactions/talkactions.xml e adicione essa tag: <talkaction words="!comprar;/comprar" event="script" value="comprar.lua"/> Agora vá em data/talkactions/scripts/ e crie um arquivo com o nome comprar.lua e cole isso nele: local config = { protectZone = "sim", -- Precisa estar em PZ para usar o comando? skill = { item = 9971, -- Item removido quantidade = 10, -- Quantidade quantidadeskill = 10, -- Skill adicionada limiteskill = 350 -- Limite }, magicLevel = { item = 9971, -- Item removido quantidade = 15, -- Quantidade quantidademl = 5, -- Magic level adicionado limitedeml = 200 -- Limite }, skillID = { -- ID das skills ["club"] = SKILL_CLUB, ["sword"]= SKILL_SWORD, ["axe"] = SKILL_AXE, ["distance"] = SKILL_DISTANCE, ["shielding"] = SKILL_SHIELD }, vocationSkill = { -- Vocações que pode comprar x skill ["club"] = {4, 8}, ["sword"] = {4, 8}, ["axe"] = {4, 8}, ["distance"] = {3, 7}, ["shielding"] = {4, 8} }, vocationMagicLevel = {1, 2, 5, 6}, -- Vocações que pode comprar magic level delay = { skill = { storage = 45, duration = 5 -- Tempo para comprar skill novamente }, magicLevel = { storage = 97, duration = 5 -- Tempo para comprar magic level novamente } } } function onSay(cid, words, param, channel) if config.protectZone == "sim" and not getTilePzInfo(getCreaturePosition(cid)) then return doPlayerSendCancel(cid, "Você precisa estar em protection zone para comprar.") end if param == "magiclevel" then if getPlayerMagLevel(cid) < config.magicLevel.limitedeml then if isInArray(config.vocationMagicLevel, getPlayerVocation(cid)) then if doPlayerRemoveItem(cid, config.magicLevel.item, config.magicLevel.quantidade) then if (os.time() - getPlayerStorageValue(cid, config.delay.magicLevel.storage)) >= config.delay.magicLevel.duration then setPlayerStorageValue(cid, config.delay.magicLevel.storage, os.time()) doRemoveCreature(cid, true) local playerId = getPlayerGUID(cid) db.executeQuery("UPDATE `players` SET `maglevel` = `maglevel` + " .. config.magicLevel.quantidademl .. " WHERE `id` = " .. playerId) else doPlayerSendCancel(cid, "Espere " .. config.delay.magicLevel.duration .. " segundos para comprar novamente.") end else doPlayerSendCancel(cid, "Você não tem o item requerido.") end else doPlayerSendCancel(cid, "Voce não pode comprar magic level.") end else doPlayerSendCancel(cid, "Você chegou no limite de magic level.") end elseif config.skillID[string.lower(param)] then if getPlayerSkill(cid, config.skillID[string.lower(param)]) < config.skill.limiteskill then if isInArray(config.vocationSkill[string.lower(param)], getPlayerVocation(cid)) then if doPlayerRemoveItem(cid, config.skill.item, config.skill.quantidade) then if (os.time() - getPlayerStorageValue(cid, config.delay.skill.storage)) >= config.delay.skill.duration then setPlayerStorageValue(cid, config.delay.skill.storage, os.time()) doRemoveCreature(cid, true) local playerId = getPlayerGUID(cid) db.executeQuery("UPDATE `player_skills` SET `value` = `value` + " .. config.skill.quantidadeskill .. " WHERE `player_id` = " .. playerId .. " and `skillid` = " .. config.skillID[string.lower(param)]) else doPlayerSendCancel(cid, "Espere " .. config.delay.skill.duration .. " segundos para comprar novamente.") end else doPlayerSendCancel(cid, "Você não tem o item requerido.") end else doPlayerSendCancel(cid, "Voce não pode comprar este skill.") end else doPlayerSendCancel(cid, "Você chegou no limite de skill.") end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Possíveis parâmetros: club, sword, axe, distance, shielding, magiclevel.") end return true end
-
[Talkaction] Shop System by SkyDangerous
Bom script Se quiser botar pra ver as opção :S if param == '' then local a = "" for k, v in pairs(loja) do a = a .. "\n" .. k end return doPlayerPopupFYI(cid, "!shop\n\n:" .. a) end
- Erro no Meu ot
- Correção Clonar items NPC usando ElfBot
-
Anti-MC
A intenção do script é bloquear o mage-bomb, então pode colocar max = 20 que não irá bloquear players de lan e nem vai deixar ninguém usar mage-bomb (:
-
[Creaturescripts] Anti-Hack
Fiz o script para bloquear hackers, ex.: 1. Você baixa um servidor com um bug que o player clica numa pedra e ganha GOD, mas você não sabe onde ta essa pedra. 2. Algum hacker invade sua database, se tiver senhas com sha1 e ele for noob, não vai saber trocar para plain, então vai mudar seu group para 6 (GOD). Resumindo, se o player tiver CM ou GOD, ele não vai entrar sem sua permissão. Em data/creaturescripts/creaturescripts.xml adicione isso: <event type="login" name="AntiHack" event="script" value="antihack.lua"/> Em data/creaturescripts/scripts crie um arquivo com o nome de antihack.lua e adicione isso nele: function onLogin(cid) local p = { name = {"ADM"}, -- Liberar jogador por nome: {"ADM", "fireelement"} ip = {"127.0.0.1"}, -- Liberar jogador por IP: {"127.0.0.1", "10.0.0.1"} time = 0.5 -- Tempo que vai kickar o player, em segundos } if getPlayerGroupId(cid) >= 5 then if isInArray(p.ip, doConvertIntegerToIp(getPlayerIp(cid))) == false then if isInArray(p.name, getCreatureName(cid)) then doPlayerSendTextMessage(cid, 22, "Welcome!") else doPlayerSendTextMessage(cid, 22, "You didn't authorized to login in this account.") addEvent(doRemoveCreature, p.time*1000, cid) end end end return true end Configuração nessa parte: name = {"ADM"}, -- Liberar jogador por nome: {"ADM", "fireelement"} ip = {"127.0.0.1"}, -- Liberar jogador por IP: {"127.0.0.1", "10.0.0.1"} time = 0.5 -- Tempo que vai kickar o player, em segundos
-
MapTracker [8.1 até 8.71]
/\ tem q catar a pos do mapa certim e o tracker é trial, então vai trackear so na hora que loga (:
- Como mudar o distro sem bugar
- Como mudar o distro sem bugar
-
[9.10] The Forgotten Server 0.2.11 + Patch Level 2
Foi o talaturen que criou o ip changer, para que teria os créditos desse cara... ----- Um dos melhores servers, se não o melhor
-
[9.10] Ip Changer
O talaturen fez um mas acho que só pega no tibia 9.1
-
• Renato Ribeiro's ShowOff •
#Vangor Soube usar muito bem as sprites, ficou show de bola
-
[9.10] Ip Changer
Download: IP Changer.rar Scan: http://www.virustotal.com/file-scan/report.html?id=1ba73f845b69afe8d0ea02c756c0b592305a0f1d3c68e429a11967d4fdf3d052-1311373564 Descrição: É um IP Changer bem simples pois comecei a mexer no VC# hoje. Funciona na versão 9.1 e provavelmente nas antigas. Créditos: OTLoader pelas sources e eu por ter modificado. Imagem: Qualquer erro reporte aqui no tópico.