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:
Here is my spell.xml
http://pastebin.com/c7s6NBem
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: