Tudo que luanluciano93 postou
-
[PEDIDO] Tutorial - Testando um mapa
Pretendo fazer um vídeo tutorial sobre isso nas próximas semanas.
-
Addon e Mount Bonus baseado no TOTAL de addons full e montarias
Você pode fazer isso quando o player ganhar o addon/mount, depende do sistema do seu ot. Ou checar on login mesmo xpAdicional = 0 if player:hasOutfit(outfitID, outfitaddons) then xpAdicional = xpAdicional + 1 end
-
Addon e Mount Bonus baseado no TOTAL de addons full e montarias
qual TFS? Só setar uma storage e cada addon full completo voce add 1 no valor da storage Na função de ganho de exp, voce colocar = valor da storage * 0,1 a mais de exp no jogador.
-
Weapons.xml tibia 13.20 canary
se tiver usando o datapack do mapa global: https://github.com/opentibiabr/canary/tree/main/data-otservbr-global/scripts/weapons se tiver usando o datapack do mapa custom: https://github.com/opentibiabr/canary/tree/main/data-canary/scripts/weapons
- Elime's NPC Editor
- [8.60] Sistema de Recompensa Loot De Boss Compartilhado (reward chest)
-
[TFS 1.5 - 8.60] STYLLER OT - 2023
para o servidor nao
-
[TFS 1.5 - 8.60] STYLLER OT - 2023
vai na fé! Se o erro é no site, não é no servidor. Eu indiquei o znote, qual o erro no znote?
-
SetPlayerName
Para canary não sei, mas creio que no TFS tem creature:setName(newName) ou monster:rename(name[, nameDescription])
-
(Resolvido)[AJUDA] ERRO REWARD CHEST
if pontos then É IGUAL A if pontos ~= nil then
-
(Resolvido)REVSCRIPT TFS 1.5
Não entendi muito bem, você fez o script e quer que alguém teste para ver se ele está funcionando?
-
(Resolvido)[AJUDA] ERRO REWARD CHEST
Tenta substituir essa parte: local pontos = getPlayerStorageValue(players[i], boss.storage) if i == 1 then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) addLoot(boss.raro, tabela_reward, false) addLoot(boss.sempre, tabela_reward, true) elseif i >= 2 and pontos >= math.ceil((porcentagem * 0.8)) then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) addLoot(boss.raro, tabela_reward, false) addLoot(boss.muito_raro, tabela_reward, false) elseif pontos < math.ceil((porcentagem * 0.8)) and pontos >= math.ceil((porcentagem * 0.6)) then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) addLoot(boss.raro, tabela_reward, false) elseif pontos < math.ceil((porcentagem * 0.6)) and pontos >= math.ceil((porcentagem * 0.4)) then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) elseif pontos < math.ceil((porcentagem * 0.4)) and pontos >= math.ceil((porcentagem * 0.1)) then addLoot(boss.comum, tabela_reward, false) end addRewardLoot(players[i], bossName, tabela_reward) por: local pontos = getPlayerStorageValue(players[i], boss.storage) if pontos then if i == 1 then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) addLoot(boss.raro, tabela_reward, false) addLoot(boss.sempre, tabela_reward, true) elseif i >= 2 and pontos >= math.ceil((porcentagem * 0.8)) then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) addLoot(boss.raro, tabela_reward, false) addLoot(boss.muito_raro, tabela_reward, false) elseif pontos < math.ceil((porcentagem * 0.8)) and pontos >= math.ceil((porcentagem * 0.6)) then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) addLoot(boss.raro, tabela_reward, false) elseif pontos < math.ceil((porcentagem * 0.6)) and pontos >= math.ceil((porcentagem * 0.4)) then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) elseif pontos < math.ceil((porcentagem * 0.4)) and pontos >= math.ceil((porcentagem * 0.1)) then addLoot(boss.comum, tabela_reward, false) end addRewardLoot(players[i], bossName, tabela_reward) end
-
(Resolvido)[AJUDA] ERRO REWARD CHEST
dofile('data/sistemas/rewardchest.lua') local function addRewardLoot(uid, bossName, tabela_reward) local money = math.random(10, 40) local msg = "The following items are available in your reward chest:" local chest = doCreateItemEx(REWARDCHEST.rewardBagId) doItemSetAttribute(chest, "description", "Reward System has kill the boss ".. bossName ..".") if table.maxn(tabela_reward) > 0 then for x = 1, table.maxn(tabela_reward) do local rand = math.random(100) if rand <= tabela_reward[x][3] then local count = math.random(1, tabela_reward[x][2]) doAddContainerItem(chest, tabela_reward[x][1], count) msg = msg .. " ".. (count > 1 and count or "") .." "..getItemNameById(tabela_reward[x][1]).."," end end doPlayerSendTextMessage(uid, MESSAGE_INFO_DESCR, msg .. " and ".. money .." platinum coins.") else doPlayerSendTextMessage(uid, MESSAGE_INFO_DESCR, msg .. " ".. money .." platinum coins.") end doAddContainerItem(chest, 2152, money) doPlayerSendMailByName(getPlayerName(uid), chest, REWARDCHEST.town_id) local boss = REWARDCHEST.bosses[bossName] setPlayerStorageValue(uid, boss.storage, 0) doSendMagicEffect(getPlayerPosition(uid), CONST_ME_MAGIC_BLUE) end local function addLoot(tabela_loot, tabela_reward, all_loot) if table.maxn(tabela_loot) > 0 then if all_loot then for x = 1, table.maxn(tabela_loot) do table.insert(tabela_reward, tabela_loot[x]) end else table.insert(tabela_reward, tabela_loot[math.random(table.maxn(tabela_loot))]) end end return tabela_reward end local function rewardChestSystem(bossName) local players = {} local boss = REWARDCHEST.bosses[bossName] for _, uid in ipairs(getPlayersOnline()) do if getPlayerStorageValue(uid, boss.storage) > 0 then table.insert(players, uid) end end table.sort(players, function(a, b) return getPlayerStorageValue(a, boss.storage) > getPlayerStorageValue(b, boss.storage) end) local x = getPlayerStorageValue(players[1], boss.storage) if (type(x) == "number") then local porcentagem = math.ceil(x) for i = 1, table.maxn(players) do local tabela_reward = {} local pontos = getPlayerStorageValue(players[i], boss.storage) if i == 1 then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) addLoot(boss.raro, tabela_reward, false) addLoot(boss.sempre, tabela_reward, true) elseif i >= 2 and pontos >= math.ceil((porcentagem * 0.8)) then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) addLoot(boss.raro, tabela_reward, false) addLoot(boss.muito_raro, tabela_reward, false) elseif pontos < math.ceil((porcentagem * 0.8)) and pontos >= math.ceil((porcentagem * 0.6)) then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) addLoot(boss.raro, tabela_reward, false) elseif pontos < math.ceil((porcentagem * 0.6)) and pontos >= math.ceil((porcentagem * 0.4)) then addLoot(boss.comum, tabela_reward, false) addLoot(boss.semi_raro, tabela_reward, false) elseif pontos < math.ceil((porcentagem * 0.4)) and pontos >= math.ceil((porcentagem * 0.1)) then addLoot(boss.comum, tabela_reward, false) end addRewardLoot(players[i], bossName, tabela_reward) end end end function onDeath(cid, corpse, killer) local boss = REWARDCHEST.bosses[getCreatureName(cid):lower()] if boss then addEvent(rewardChestSystem, 1000, getCreatureName(cid):lower()) end return true end function onStatsChange(cid, attacker, type, combat, value) if isMonster(cid) and type == STATSCHANGE_HEALTHLOSS and isPlayer(attacker) then local boss = REWARDCHEST.bosses[getCreatureName(cid):lower()] if boss and attacker then setPlayerStorageValue(attacker, boss.storage, getPlayerStorageValue(attacker, boss.storage) + math.ceil((value / REWARDCHEST.formula.hit))) end end return true end
-
(Resolvido)[AJUDA] ERRO REWARD CHEST
o erro diz que a função MATH.CEIL está sendo usando em um boleano. O MATH.CEIL é usado para arredondar um número quebrado pra cima, por exemplo = math.ceil(1.7) o resultado será 2. BOLEANO é um tipo de dado, e eles retornar VERDADEIRO ou FALSO, por exemplo = isPremium(), se o jogador for premium, retorna verdadeiro, se não for, retornar falso. Pois bem, o erro é na linha local porcentagem = math.ceil(getPlayerStorageValue(players[1], boss.storage)) a função getPlayerStorageValue puxa o valor que esta armazena na storage boss.storage, porém ela, de alguma forma, esta retornando um boleano. Creio que o valor pode ter sido definido como boleano para essa storage em outro script do servidor.
-
(Resolvido)Como adicionar sistema de quiver ao tfs 1.4.2 sem trocar o protocolo para 12.x
tenta add só as alterações que add o quiver no jogo.
- Compilando e configurando servidor TFS 1.x no Ubuntu 22.04
- Tutorial completo de infraestrutura para montar um servidor TFS 1.x no Ubuntu 22.04
- Instalando e configurando o ZnoteACC no Ubuntu 22.04
-
[TUTORIAL] Criando site com Znote AAC para TFS 1.2
Legal o tutorial. Seria legal especificar no tópico que ele é para windows, pois muitos procuraram este tipo de conteúdo para linux. Só uma sugestão, já tentou usar o USBWEBSERVER no lugar do XAMP? para windows, na minha opinião, é bem mais simples.
-
[TFS 1.5 - 8.60] STYLLER OT - 2023
sim, desde que o gesior seja para a versão TFS 1.x
-
SpellBook Dando Debug - Muita Magia no OT Alguem Pode Simplifica Pra Mim Por Favor
tente aumentar esse valor e este
-
SpellBook Dando Debug - Muita Magia no OT Alguem Pode Simplifica Pra Mim Por Favor
Talvez a função doShowTextDialog tenha um limite de caracteres ... volte no começo, e vá add uma por uma até dar o debug, ai você achou o limite ...
-
Dupe/clone de items TFS 1.3
Use o tfs 1.4 ou 1.5 ...
-
[TFS 0.4] SafeZone Event - Adaptação de compatibilidade
Parabéns, é muito bom ver que alguém ainda faz algo útil e gratuito para o fórum.
-
Ajuda para cria otserv em ubuntu
Informação Importante
Confirmação de Termo