elnelson
Lunaria World Dev
Hello, Im trying to create a 8.6 cooldown bar based on opcodes. My server has some storages used as cooldowns
E.G:
When player uses this spell he will get 2 seconds of Exura (storage: 23067).
Then client should show something like the image attached (its an example of wow cast bar, but should be reversed, instead of getting full, it is getting empty until time gets to 0 and fade the notification)
As image shows the cooldowns should be shown ascending depending of the remaining time
i was reading this: Trying to receive a storage value from Tfs > Otclient (https://otland.net/threads/trying-to-receive-a-storage-value-from-tfs-otclient.265046/)
But, to be honest i didnt understand a single thing and i failed. I already compiled my TFS 0.4 to accept opcodes and it worked with another simplier script.
Hope someone could help me to achieve this
E.G:
Lua:
function onCastSpell(cid, var)
local Exura = 23067
if exhaustion.check(cid, Exura) == false then
exhaustion.set(cid,Exura, 2)
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, "Cooldown[" ..exhaustion.get(cid,Exura).."]")
end
end
When player uses this spell he will get 2 seconds of Exura (storage: 23067).
Then client should show something like the image attached (its an example of wow cast bar, but should be reversed, instead of getting full, it is getting empty until time gets to 0 and fade the notification)
As image shows the cooldowns should be shown ascending depending of the remaining time
i was reading this: Trying to receive a storage value from Tfs > Otclient (https://otland.net/threads/trying-to-receive-a-storage-value-from-tfs-otclient.265046/)
But, to be honest i didnt understand a single thing and i failed. I already compiled my TFS 0.4 to accept opcodes and it worked with another simplier script.
Hope someone could help me to achieve this
Attachments
-
tableexample.png79.2 KB · Views: 122 · VirusTotal