Tudo que matheuspeixoto12 postou
-
(Resolvido)adicionar magic level nesse script
Deu certo, havia mais um erro também, tinha um ) colocado errado. Consegui arrumar. Está 100% Obrigado. Vou deixar o corrigido certo aqui em baixo. -- ####################################### -- ####### Developed by MaXwEllDeN ####### -- ####### Level Points System ####### -- ####### Version: 1.0 ####### -- ####################################### local function addMagLevel(cid, amount) local amount = amount or 1 for i = 1, amount do doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, getPlayerMagLevel(cid, true) + 1) - getPlayerSpentMana(cid), false) end return true end function onSay(cid, words, param) if not (L_LvlPoints.vocPoints[getPlayerVocation(cid)]) then return false end local param = param:lower() local p2 = string.explode(param, ",") if (getPlayerStorageValue(cid, 14574) < 0) then setPlayerStorageValue(cid, 14574, 0) end local skillids = { ["shielding"] = 5, ["sword"] = 2, ["axe"] = 3, ["club"] = 1, ["distance"] = 4, } if (param == "check") then doPlayerPopupFYI(cid, "~*~*~ Level Points System by MaXwEllDeN ~*~*~\n\nPontos disponíveis: ".. getPlayerStorageValue(cid, 14574) .."\nPontos por level: ".. L_LvlPoints.vocPoints[getPlayerVocation(cid)]) elseif (p2[1] and p2[1] == "add") and (L_LvlPoints.attributes[p2[2]]) and (tonumber(p2[3])) then if (getPlayerStorageValue(cid, 14574) < tonumber(p2[3]) * L_LvlPoints.attributes[p2[2]].np) then doPlayerSendCancel(cid, "Você não tem pontos suficientes para distribuir!") return doSendMagicEffect(getThingPos(cid), 2) end if (p2[2] == "vitalidade") then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + L_LvlPoints.attributes[p2[2]].vl * tonumber(p2[3])) doCreatureAddHealth(cid, L_LvlPoints.attributes[p2[2]].vl * tonumber(p2[3])) elseif (p2[2] == "energy") then setCreatureMaxMana(cid, getCreatureMaxMana(cid) + L_LvlPoints.attributes[p2[2]].vl * tonumber(p2[3])) doCreatureAddMana(cid, L_LvlPoints.attributes[p2[2]].vl * tonumber(p2[3])) elseif (p2[2] == "magic") then addMagLevel(cid, L_LvlPoints.attributes[p2[2]].vl * tonumber(p2[3])) elseif(skillids[p2[2]]) then for a = 1, tonumber(p2[3]) do doPlayerAddSkillTry(cid, skillids[p2[2]], getPlayerRequiredSkillTries(cid, skillids[p2[2]], getPlayerSkillLevel(cid, skillids[p2[2]]) + 1) - getPlayerSkillTries(cid, skillids[p2[2]]), false) end end doSendMagicEffect(getThingPos(cid), 29) doSendMagicEffect(getThingPos(cid), 30) doSendAnimatedText(getThingPos(cid), "-" .. tonumber(p2[3]) * L_LvlPoints.attributes[p2[2]].np, 180) setPlayerStorageValue(cid, 14574, getPlayerStorageValue(cid, 14574) - tonumber(p2[3]) * L_LvlPoints.attributes[p2[2]].np) else local msgx = "" for i, v in pairs(L_LvlPoints.attributes) do local add = (v.np > 1) and "s" or "" msgx = msgx .. string.upper(i:sub(1,1)) .. i:sub(2, #i) .. " - ".. v.np .. " ponto".. add .. " ~ " .. v.vl .. " ".. v.nm .. "\n" end doPlayerPopupFYI(cid, "Pontos necessários para aumentar os stats:\n\n".. msgx .. "\nExemplo de uso: ".. words .." add, vitalidade, 5\n\nPontos disponíveis: ".. getPlayerStorageValue(cid, 14574)) end return true end
-
(Resolvido)adicionar magic level nesse script
apareceu esse erro [Error - LuaScriptInterface::loadFile] data/talkactions/scripts/PointsSystem.lua:1: unexpected symbol near '-' [Warning - Event::loadScript] Cannot load script (data/talkactions/scripts/PointsSystem.lua) data/talkactions/scripts/PointsSystem.lua:1: unexpected symbol near '-'
-
(Resolvido)adicionar magic level nesse script
oi boa noite, encontrei esse script no fórum, alguém consegue editar para ele adicionar magic level, também? Ele gasta os pontos mas não aumenta o ml lib -- ####################################### -- ####### Developed by MaXwEllDeN ####### -- ####### Level Points System ####### -- ####### Version: 1.0 ####### -- ####################################### L_LvlPoints = { vocPoints = { -- [Skill] = Pontos que ganha, [1] = 2, [2] = 2, [3] = 2, [4] = 2, }, attributes = { ["vitalidade"] = {np = 2, vl = 20, nm = "Hit Points"}, -- Precisa usar 2 points para adicionar 10 de hp ["energy"] = {np = 4, vl = 10, nm = "Mana Points"}, ["magic"] = {np = 10, vl = 2, nm = "Magic Level"}, ["shielding"] = {np = 5, vl = 1, nm = "Shielding Skill"}, ["sword"] = {np = 2, vl = 1, nm = "Sword Skill"}, ["axe"] = {np = 2, vl = 1, nm = "Axe Skill"}, ["club"] = {np = 2, vl = 1, nm = "Club Skill"}, ["distance"] = {np = 2, vl = 1, nm = "Distance Skill"}, } } Talkactions Você tem o código disponível? Se tiver publique-o aqui: -- ####################################### -- ####### Developed by MaXwEllDeN ####### -- ####### Level Points System ####### -- ####### Version: 1.0 ####### -- ####################################### function onSay(cid, words, param) if not (L_LvlPoints.vocPoints[getPlayerVocation(cid)]) then return false end local param = param:lower() local p2 = string.explode(param, ",") if (getPlayerStorageValue(cid, 14574) < 0) then setPlayerStorageValue(cid, 14574, 0) end local skillids = { ["shielding"] = 5, ["sword"] = 2, ["axe"] = 3, ["club"] = 1, ["distance"] = 4, } if (param == "check") then doPlayerPopupFYI(cid, "~*~*~ Level Points System by MaXwEllDeN ~*~*~\n\nPontos disponíveis: ".. getPlayerStorageValue(cid, 14574) .."\nPontos por level: ".. L_LvlPoints.vocPoints[getPlayerVocation(cid)]) elseif (p2[1] and p2[1] == "add") and (L_LvlPoints.attributes[p2[2]]) and (tonumber(p2[3])) then if (getPlayerStorageValue(cid, 14574) < tonumber(p2[3]) * L_LvlPoints.attributes[p2[2]].np) then doPlayerSendCancel(cid, "Você não tem pontos suficientes para distribuir!") return doSendMagicEffect(getThingPos(cid), 2) end if (p2[2] == "vitalidade") then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid) + L_LvlPoints.attributes[p2[2]].vl * tonumber(p2[3])) doCreatureAddHealth(cid, L_LvlPoints.attributes[p2[2]].vl * tonumber(p2[3])) elseif (p2[2] == "energy") then setCreatureMaxMana(cid, getCreatureMaxMana(cid) + L_LvlPoints.attributes[p2[2]].vl * tonumber(p2[3])) doCreatureAddMana(cid, L_LvlPoints.attributes[p2[2]].vl * tonumber(p2[3])) elseif(skillids[p2[2]]) then for a = 1, tonumber(p2[3]) do doPlayerAddSkillTry(cid, skillids[p2[2]], getPlayerRequiredSkillTries(cid, skillids[p2[2]], getPlayerSkillLevel(cid, skillids[p2[2]]) + 1) - getPlayerSkillTries(cid, skillids[p2[2]]), false) end end doSendMagicEffect(getThingPos(cid), 29) doSendMagicEffect(getThingPos(cid), 30) doSendAnimatedText(getThingPos(cid), "-" .. tonumber(p2[3]) * L_LvlPoints.attributes[p2[2]].np, 180) setPlayerStorageValue(cid, 14574, getPlayerStorageValue(cid, 14574) - tonumber(p2[3]) * L_LvlPoints.attributes[p2[2]].np) else local msgx = "" for i, v in pairs(L_LvlPoints.attributes) do local add = (v.np > 1) and "s" or "" msgx = msgx .. string.upper(i:sub(1,1)) .. i:sub(2, #i) .. " - ".. v.np .. " ponto".. add .. " ~ " .. v.vl .. " ".. v.nm .. "\n" end doPlayerPopupFYI(cid, "Pontos necessários para aumentar os stats:\n\n".. msgx .. "\nExemplo de uso: ".. words .." add, vitalidade, 5\n\nPontos disponíveis: ".. getPlayerStorageValue(cid, 14574)) end return true end
-
importar sprites cliente 11
boa noite pessoal, tudo bem? Exportei uma sprite .obd do tibia atual e gostaria de colocar em um cliente 8.6 mas aparece o erro "Parameter sprites cannot be null or empty" vi em um tópico que preciso deletar alguma coisa antes de exportar, mas não consegui achar o que seria, alguém consegue me ajudar ? obs. meu cliente é old, mas está extendido valeu boa noite. Você tem o código disponível? Se tiver publique-o aqui: Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
boss some em uma certa porcentagem de vida
Deu certo, agora o monstro foi para a pos, mas não apareceu os monstros para matar e o gnomevil não voltou para a pos original local TELEPORTED_CREATURES = {"Dwarf Minion"} local TELEPORT_LOW_HEALTH = { {name = "Gnomevil", to = {x=52,y=600,z=7}, percent=80}, {name = "Gnomevil", to = {x=52,y=600,z=7}, percent=60}, {name = "Gnomevil", to = {x=52,y=600,z=7}, percent=40}, } function onStatsChange(cid, attacker, type, combat, value) if isMonster(cid) then for n, m in pairs(TELEPORT_LOW_HEALTH) do if m.name == getCreatureName(cid) and getCreatureHealth(cid) <= (getCreatureMaxHealth(cid) / 100) * m.percent then local pos = m.to.x..","..m.to.y..","..m.to.z if not TELEPORTED_CREATURES[cid] or TELEPORTED_CREATURES[cid] ~= pos then TELEPORTED_CREATURES[cid] = pos doTeleportThing(cid, m.to, false) break end end end end return true end
-
boss some em uma certa porcentagem de vida
.Qual servidor ou website você utiliza como base? Alissow 9.83 Boa noite pessoal, encontrei essse script em outro fórum, mas não estou conseguindo instalar. Ele consiste em quando o boss chegar em 80% de vida, ele é transportador para uma prisão e aparecem outros monstros no lugar, ao matar os monstros, o boss retorna. Chegando em 60% e 40% de vida acontece novamente. Alguém poderia me ajudar? Tentei instalar mas apareceu esse erro. Segue o código local TELEPORTED_CREATURES = {} local TELEPORT_LOW_HEALTH = { {name = "Demon", to = {x=1,y=1,z=7}, percent=80}, {name = "Demon", to = {x=1,y=1,z=7}, percent=60}, {name = "Demon", to = {x=1,y=1,z=7}, percent=40}, } function onStatsChange(cid, attacker, type, combat, value) if isMonster(cid) then for n, m in pairs(TELEPORT_LOW_HEALTH) do if m.name == getCreatureName(cid) and getCreatureHealth(cid) <= (getCreatureMaxHealth(cid) / 100) * m.percent then local pos = m.to.x..","..m.to.y..","..m.to.z if not TELEPORTED_CREATURES[cid] or TELEPORTED_CREATURES[cid] ~= pos then TELEPORTED_CREATURES[cid] = pos doTeleportThing(cid, m.to, false) break end end end end return true end
- NTO Hero 8.6 TFS0.4 2019+Database+Source+MyAAC
-
sprites tibia 11
Boa noite aonde fica o spr e dat do tibia 11?
-
speed nas vocações
sim está correto. Tentei tbm registrando no login mas nao funcionou. vc testou? funcionou?
-
speed nas vocações
boa noite, testei aqui mas nao deu certo. Não deu nenhum erro mas tbm nao ficou mais rapido.
-
speed nas vocações
olá, não me refiro a velocidade dos ataques mas sim a velocidade do movimento do jogador. Quero que umas vocações corram mais rápido que outras.
-
speed nas vocações
boa noite gostaria de saber como faço para a vocação abaixo ser mais rápida que as outras Grato. <vocation id="1" name="Naruto" description="a naruto" needpremium="0" gaincap="20" gainhp="500" gainmana="350" gainhpticks="1" gainhpamount="150" gainmanaticks="1" gainmanaamount="250" manamultiplier="1.2" attackspeed="1200" soulmax="300" gainsoulticks="60" fromvoc="1"> <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="1.5" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/> <skill fist="2.0" club="2.0" sword="4.0" axe="2.0" distance="2.0" shielding="2.0" fishing="2.0" experience="2.0"/> </vocation>
-
Combo para três magias
local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat1, COMBAT_PARAM_EFFECT, 0) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -3.0, -2000000, -2.6, -3000000) arr1 = { {3} } local area1 = createCombatArea(arr1) setCombatArea(combat1, area1) local function onCastSpell1(parameters) return isPlayer(parameters.cid) and doCombat(parameters.cid, combat1, parameters.var) end function onCastSpell(cid, var) local waittime = 3 -- Tempo de exhaustion local storage = 5946 if exhaustion.check(cid, storage) then return false end local parameters = { cid = cid, var = var} addEvent(onCastSpell1, 100, parameters) exhaustion.set(cid, storage, waittime) return TRUE end up up
-
Combo para três magias
não, assim, são 3 magias diferentes que eu quero que formem um combo aos usa-las em sequencia, mas só consigo fazer com 2, não consigo com as 3 magias. as 3 magias utilizam o mesmo script mudando apenas a storage e o exaustion, com 2 funcionou agora com as 3 só ficou soltando 2.
-
Combo para três magias
boa noite galera, estou fazendo um ot e estou tentando fazer combo com 3 magias mas só está saindo 2, alguém sabe me ajudar? estou usando esta tag de storage na spell 1 function onCastSpell(cid, var) local waittime =1 -- Tempo de exhaustion local storage = 5947 if exhaustion.check(cid, storage) then doCreatureSay(cid, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.", TALKTYPE_MONSTER) return false end exhaustion.set(cid, storage, waittime) exaustion 1500. tag de storage na spell 2 function onCastSpell(cid, var) local waittime = 2 -- Tempo de exhaustion local storage = 5948 if exhaustion.check(cid, storage) then doCreatureSay(cid, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.", TALKTYPE_MONSTER) return false end exhaustion.set(cid, storage, waittime) exaustion 1500. tag de storage na spell 3 function onCastSpell(cid, var) local waittime = 3 -- Tempo de exhaustion local storage = 5949 if exhaustion.check(cid, storage) then doCreatureSay(cid, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.", TALKTYPE_MONSTER) return false end exhaustion.set(cid, storage, waittime) exaustion 1500. más só sai as 2 primeiras. Quando eu mudo o exaustion apenas muda o tempo de execução das 2 primeiras. Alguém me ajuda? grato.
-
Item Editor 10.90
Você teria algum spr ediro 10.90?
-
Mega Pack Sprites [+39,000] RPG Server.
Arruma o link
-
spr editor 10.90
Boa noite galera, recentemente foi lançado o tibia 10.90 e não consigo abrir o spr com o meu spr editor. Alguem sabe um programa que abra as sprites deste novo cliente? Grato.
-
(Resolvido)spell com tempo de espera
olá, funcionou normalmente o exausted mas, a magia não está batendo
-
(Resolvido)spell com tempo de espera
boa tarde alguém poderia fazer com que depois que o player usar a magia ele precise esperar 20 segundos para usa-la novamente? Grato. local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_FIREDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 8) function onGetFormulaValues(cid, level, maglevel) min = -((level / 5) + (maglevel * 4.5) + 20) max = -((level / 5) + (maglevel * 7.6) + 48) return min, max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") function onCastSpell(cid, var) local position = {x=getCreaturePosition(cid).x+1, y=getCreaturePosition(cid).y, z=getCreaturePosition(cid).z} doSendMagicEffect(position, 181) target = getCreatureTarget(cid) end
-
[Wono 1.2] World of Naruto Online
agora consegui. Obrigado.
-
[Wono 1.2] World of Naruto Online
a ok. obrigado, mas acho que se fizessem upload em mais algum outro site era melhor, já que vários já reclamaram.
-
[Wono 1.2] World of Naruto Online
aqui também. Ele demora e depois aparece uma mensagem de erro
-
[Wono 1.2] World of Naruto Online
não consigo baixar, alguém pode dar upload no mediafire?
-
Spell de trap um pouco diferente
alguém consegue fazer esta spell pra mim? obrigado