Estava tentando abaixar o exhausted de certos itens no servidor mas o exhausted de tudo está cerca de 1 segundo.
Ja abaixei o config:
timeBetweenActions = 0 timeBetweenExActions = 0 hotkeyAimbotEnabled = true
Ja abaixei para 0 no spells.XML
<rune name="ARMA1" id="7417" allowfaruse="1" charges="no" lvl="8" exhaustion="0" maglv="0" range="5" needtarget="0" blocktype="solid" event="script" value="arma1.lua"/>
e coloquei o Exhausted direto no código porém não consigo criar em milissegundos
local runa = 7417 local msg = "Equipe a %s na mão, para poder atirar." local attackmin, attackmax = 20, 50 function onCastSpell(cid, var) local waittime = 1 local storage = 989898 if exhaustion.check(cid, storage) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.") return false end local left, right = getPlayerSlotItem(cid, CONST_SLOT_LEFT), getPlayerSlotItem(cid, CONST_SLOT_RIGHT) if isInArray({left.itemid, right.itemid}, runa) then else return doPlayerSendCancel(cid, msg:format(getItemNameById(runa))) end if doPlayerRemoveItem(cid, 2543, 1) then target = getCreatureTarget(cid) if (target <= 0) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Selecione um target.") return false end hit = (math.random(attackmin,attackmax) + getPlayerSkillLevel(cid, SKILL_DISTANCE) / 3) doTargetCombatHealth(cid, target, COMBAT_PHYSICALDAMAGE, -hit, -hit, CONST_ME_MORTAREA) doSendDistanceShoot(getCreaturePos(cid), getCreaturePos(target), CONST_ANI_BOLT) exhaustion.set(cid, storage, waittime) return TRUE end doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você não possui balas.") return false end
se eu trocar para 0.5 ou 1/2 não funciona de nenhum modo
Se alguem puder me ajudar agradeço!! ❤️