Solutions
-
jNo's post in (Resolvido)[AJUDA] Death Channel was marked as the answer<channel id="10" active="no" logged="yes" name="Death Channel"/>
-
jNo's post in (Resolvido)Erro no !Rank was marked as the answerLembrei que o Vodkart havia feito pra min, como meus tópicos foram apagados, não sei como... lembrei que tinha a solução em um bloco de notas no meu pen drive iuasdhuiashdiuai, ele fez uma função ai pra lib diferente:
Não ponham apenas essa parte abaixo na lib 50 se estiver com problema parecido:
function setFrags(cid) if not isCreature(cid) then return LUA_ERROR end setPlayerStorageValue(cid, 824544, getPlayerFrags(cid)) return doPlayerSave(cid) end Coloque assim \/
function getPlayerFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = {date = result:getDataInt("date")} if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = {day = table.maxn(contents.day),week = table.maxn(contents.week),month = table.maxn(contents.month)} return size.day + size.week + size.month end function setFrags(cid) if not isCreature(cid) then return LUA_ERROR end setPlayerStorageValue(cid, 824544, getPlayerFrags(cid)) return doPlayerSave(cid) end -
jNo's post in (Resolvido)Erro no sql - Colum Cast was marked as the answerResolvi, valeu brother
-
jNo's post in (Resolvido)bug no heal do ot was marked as the answerlocal combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) function getCombatFormulas(cid, lv, maglv) local formula_min = ((lv*1 + maglv*3) * 3.89) local formula_max = ((lv*1 + maglv*3) * 3.78) if(formula_max < formula_min) then local tmp = formula_max formula_max = 12000 formula_min = 10000 end return formula_min, formula_max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "getCombatFormulas") function onCastSpell(cid, var) return doCombat(cid, combat, var) end Exura Vita
UP
up
Consegui resolver, era nada no meu ot, e sim um script de Cast System, quem tiver o mesmo problema, não usem esse script \/
http://www.tibiaking.com/forum/topic/26602-sistema-cast-system-para-86/
-
jNo's post in (Resolvido)bug pra variar ¬¬ was marked as the answerAgora só não hita o player, ataca tudo certinho, mais o hit não funciona....
Não deu certo, testei todos
Consegui resolver, era nada no meu ot, e sim um script de Cast System, quem tiver o mesmo problema, não usem esse script \/
http://www.tibiaking.com/forum/topic/26602-sistema-cast-system-para-86/