• 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!

Exhaust-problems on healing/support spells

Drakkor

New Member
Joined
Feb 20, 2009
Messages
4
Reaction score
0
Hello guys, I have a problem with the exhausts on both healing and support spells and the big problem is - there is none. It does not matter what I do with the exhausts cus nothing seems to be working. Although the regular attack-spells are working fine, and the exhaust between attack and healing/support spells are working fine aswell.
I'm using 0.4REV 8.6
Using this one in Lib:
Code:
 exhaustion =
{
check = function (cid, storage)
  if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
   return false
  end

  return getPlayerStorageValue(cid, storage) >= os.time()
end,

get = function (cid, storage)
  if(getPlayerFlagValue(cid, PLAYERFLAG_HASNOEXHAUSTION)) then
   return false
  end

  local exhaust = getPlayerStorageValue(cid, storage)
  if(exhaust > 0) then
   local left = exhaust - os.time()
   if(left >= 0) then
    return left
   end
  end

  return false
end,

set = function (cid, storage, time)
  setPlayerStorageValue(cid, storage, os.time() + time)
end,

make = function (cid, storage, time)
  local exhaust = exhaustion.get(cid, storage)
  if(not exhaust) then
   exhaustion.set(cid, storage, time)
   return true
  end

  return false
end
}

Here is my spell.xml
http://pastebin.com/c7s6NBem
 
Last edited:
Perhaps this solves test:
Alter on config.lua
Code:
timeBetweenExActions = 1000
For:
Code:
timeBetweenExActions = 0

I tried that on my server..

Had
timeBetweenActions = 200
timeBetweenExActions = 200

Changed it to 0 on the one you said, then both. Nothing of it worked, atleast on my server. Only changed it when I used pots.
 
Back
Top