Postado Março 26, 2018 7 anos To adicionando uns scripts no me servidor, sistemas e to achando super dahora e vejo que não tem por aqui, vim disponibilizar pra vocês. Citar Ao pescar, você tem a chance de pegar um monstro em vez de um peixe. O script usa a mesma fórmula do script de pesca oficial do TFS 1.1, quando você pega algo, você recebe um monstro ou um peixe. actions.xml <action itemid="2580" script="monsterFishing.lua" allowfaruse="1"/> scripts/monsterFishing.lua local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 7236, 10499, 15401, 15402} local lootTrash = {2234, 2238, 2376, 2509, 2667} local lootCommon = {2152, 2167, 2168, 2669, 7588, 7589} local lootRare = {2143, 2146, 2149, 7158, 7159} local lootVeryRare = {7632, 7633, 10220} local useWorms = true -- Config for monster fishing local config = { enabled = true, -- ativar ou desativar a pesca monstro debug = false, -- ativar mensagens de depuração no console verifyMonsters = false, -- desabilite isso se você estiver tendo problemas com o Monster fishing :: Warning - Invalid monster name chance = 50, -- chance de pegar um monstro em% - 50 significa que você tem 50/50 de chance de pegar um monstro ou um peixe bossLevel = 300, -- nível mínimo para pegar um "boss" bossSkill = 90, -- min habilidade de pesca para pegar um "boss" monsters = { -- [minLevel] = {"monster", "names", "for", "level"} [100] = {"Quara Hydromancer", "Quara Constrictor", "Quara Mantassin", "Idontexist"}, [150] = {"Quara Pincher", "Quara Predator"}, [200] = {"Serpent Spawn", "Wyrm"}, [300] = {"Sea Serpent"}, }, bosses = { -- Monsters that can only be caught with atleast "bossLevel" and "bossSkill" "Titan Goddess of Water", } } -- Validate monsters configuration if config.verifyMonsters then local m = {} for minLevel, monsters in pairs(config.monsters) do m[minLevel] = {} if config.debug then print("#monsters", #monsters) end for i = 1, #monsters do if MonsterType(monsters[i]) then table.insert(m[minLevel], monsters[i]) else print("Monster fishing::Warning - Invalid monster name:", monsters[i]) end end if config.debug then print("Monster fishing::Debug - #monsters added", #m[minLevel]) end end config.monsters = m end function onUse(player, item, fromPosition, itemEx, toPosition, isHotkey) local targetId = itemEx.itemid if not isInArray(waterIds, itemEx.itemid) then return false end if targetId == 10499 then local targetItem = Item(itemEx.uid) local owner = targetItem:getAttribute(ITEM_ATTRIBUTE_CORPSEOWNER) if owner ~= 0 and owner ~= player:getId() then player:sendTextMessage(MESSAGE_STATUS_SMALL, "You are not the owner.") return true end toPosition:sendMagicEffect(CONST_ME_WATERSPLASH) targetItem:remove() local rareChance = math.random(1, 100) if rareChance == 1 then player:addItem(lootVeryRare[math.random(#lootVeryRare)], 1) elseif rareChance <= 3 then player:addItem(lootRare[math.random(#lootRare)], 1) elseif rareChance <= 10 then player:addItem(lootCommon[math.random(#lootCommon)], 1) else player:addItem(lootTrash[math.random(#lootTrash)], 1) end return true end if targetId ~= 7236 then toPosition:sendMagicEffect(CONST_ME_LOSEENERGY) end if targetId == 493 or targetId == 15402 then return true end player:addSkillTries(SKILL_FISHING, 1) if math.random(1, 100) <= math.min(math.max(10 + (player:getEffectiveSkillLevel(SKILL_FISHING) - 10) * 0.597, 10), 50) then if useWorms and not player:removeItem("worm", 1) then return true end if targetId == 15401 then local targetItem = Item(itemEx.uid) targetItem:transform(targetId + 1) targetItem:decay() if math.random(1, 100) >= 97 then player:addItem(15405, 1) return true end elseif targetId == 7236 then local targetItem = Item(itemEx.uid) targetItem:transform(targetId + 1) targetItem:decay() local rareChance = math.random(1, 100) if rareChance == 1 then player:addItem(7158, 1) return true elseif rareChance <= 4 then player:addItem(2669, 1) return true elseif rareChance <= 10 then player:addItem(7159, 1) return true end end if config.enabled and math.random(100) <= config.chance then local level = player:getLevel() local skill = player:getSkillLevel(SKILL_FISHING) local tmpMonsters = {} for minLevel, monsters in pairs(config.monsters) do if config.debug then print("Monster fishing::Debug - Level check:", level, ">=", minLevel) end if level >= minLevel then if config.debug then print("Monster fishing::Debug - Level check passed - #monsters:", #monsters) end for i = 1, #monsters do if config.debug then print("Monster fishing::Debug - Found monster:", monsters[i]) end table.insert(tmpMonsters, monsters[i]) end end end if level >= config.bossLevel and skill >= config.bossSkill then for i = 1, #config.bosses do table.insert(tmpMonsters, config.bosses[i]) end end if config.debug then print("Monster fishing::Debug - #tmpMonsters: "..#tmpMonsters) end if #tmpMonsters > 0 then local pos = player:getPosition() Game.createMonster(tmpMonsters[math.random(1, #tmpMonsters)], pos) return true end end player:addItem("fish", 1) end return true end Caso na hora de pescar venha esse item ao invés do fish, é por causa dos items.xml, dai é só você mudar player:addItem("2667", 1) e adicionar o ID do fish. Citar créditos ao forgee, pelo script.
Postado Março 26, 2018 7 anos Parabéns, seu tópico de conteúdo foi aprovado! Muito obrigado pela sua contribuição, nós do Tibia King agradecemos. Seu conteúdo com certeza ajudará à muitos outros, você recebeu +1 REP. Spoiler Congratulations, your content has been approved! Thank you for your contribution, we of Tibia King we are grateful. Your content will help many other users, you received +1 REP. Talvez você queira ver: BestBaiak [FAQ]Remere's Map Editor - Dúvidas e soluções de bugs Contato: Discord:
Postado Novembro 28, 2020 4 anos Cara aqui eu pesco e n acontece nada, n acusa nada na distro pode me ajudar?
Postado Novembro 28, 2020 4 anos 15 horas atrás, kasemaru1 disse: Cara aqui eu pesco e n acontece nada, n acusa nada na distro pode me ajudar? Posta o problema ai amigão, fica mais fácil de quem for ajudar entender do que se trata ? E fala qual TFS tu usa Programador/Scripter/Mapper nível NOOB ?
Postado Novembro 28, 2020 4 anos @Pedro. pretende fazer um downgrade para versão 0.4? achei muito bacana Compre seus Scripts Agora totalmente seguro e de forma rápida, aceitamos também encomendas. discord.gg/phJZeHa2k4 Projeto ATS (Naruto) Informações Abaixo Facebook Youtube Discord Tutoriais / Conteúdos Clique Aqui
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.