Postado Janeiro 13, 2015 10 anos Nossa tava precisando^^.. Rep++, :-), tem como por limite nos outros skills nesse mesmo script, ou teria que fazer um para cada? Obrigado. sabestudo.com | Em Breve.. Gostou? Considere..: ou
Postado Janeiro 13, 2015 10 anos O tópico foi movido para a área correta, preste mais atenção da próxima vez! Leia as regras do fórum: http://tibiaking.com/forum/topic/1281-regras-gerais/?p=7680 Este tópico foi movido: De: "OTServ → Scripting → CreatureScripts, GlobalEvents e MoveMents" Para: "OTServ → Suporte OTServ → Suporte de Scripts" STYLLER OT 2022
Postado Janeiro 14, 2015 10 anos tem como por limite nos outros skills nesse mesmo script, ou teria que fazer um para cada? Basta configurar como sendo true, caso queira o limite em determinado skill. Senão, false. local skills = { -- [skill number] = {bvalue = true/false, max = skillLevel} [0] = {bvalue = false, max = 115}, -- fist [1] = {bvalue = true, max = 115}, -- club [2] = {bvalue = true, max = 115}, -- sword [3] = {bvalue = true, max = 115}, -- axe [4] = {bvalue = true, max = 115}, -- distance [5] = {bvalue = true, max = 115}, -- shielding [6] = {bvalue = false, max = 115}, -- fishing [7] = {bvalue = true, max = 115}, -- magic level [8] = {bvalue = false, max = 115} -- level } function onAdvance(cid, skill, oldLevel, newLevel) local s = skills[skill] if s and s.bvalue and newLevel >= s.max then return false end return true end The corrupt fear us. The honest support us. The heroic join us.
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.