• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Shared Exhaust (Sharing the same exhaust attack/healing)

Zt0ffe

New Member
Joined
Sep 26, 2008
Messages
341
Reaction score
4
Location
Sweden
Hello dear OTlanders =)

So I have these codes in my attacking / heal spells:

It get the exhaust from the lib -> 034-exhastion. So (cid, 30031, 1) adds 1 extra second exhaust.
Code:
function onCastSpell(cid, var)
    if exhaustion.check(cid, 30030) then
  doPlayerSendCancel(cid, "You are exhausted.")
     else
exhaustion.set(cid, 30030, 1)
return doCombat(cid, combat, var)
end
end

So I added 5(to Exura Vita) and its 5 seconds, So it goes like this:

I SD -> Takes 2 sec before I can exura Vita, then next exura vita after that i 5 secs after.
Only spam Exura vita -> 5 secs between, AttackSpell Then Evita = 2 seconds..

For some reason even If I try with (cid, 30030, 0), still 2 seconds.

Want it to be correct ofc, SD - 1 sec exhaust to use heal - For some reason It always gets 2 seconds from an attack spell too any heal. Works fine with support spells. And if I delete the code above from script, I can heal directly after using an attack spell.
 
Last edited:
Back
Top