Alexandria 53 Posted December 26, 2014 (edited) Hello there, I would like to add a message to my healer, it must tell how much they have to wait to being healed again. Example: mes "You have to wait 12 seconds to be healed again." healer.txt Edited December 26, 2014 by Alexandria Quote Share this post Link to post Share on other sites
0 GmOcean 92 Posted December 28, 2014 (edited) Find this: if (@HD > gettimetick(2)) end; and replace with this: if (@HD > gettimetick(2)) { message strcharinfo(0),"Please wait: "+callfunc("Time2Str",@HD)+""; end; } That should make it display how much longer they need to wait before getting healed. Edited December 29, 2014 by GmOcean 1 Alexandria reacted to this Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted December 28, 2014 Find this: if (@HD > gettimetick(2)) end; and replace with this: if (@HD > gettimetick(2)) { .@time = @HD - gettimetick(2); message strcharinfo(0),"Please wait: "+callfunc("Time2Str",.@time)+""; end; } That should make it display how much longer they need to wait before getting healed. Thank you but it does not display time. it just says "Please wait" and nothing else. Quote Share this post Link to post Share on other sites
0 GmOcean 92 Posted December 29, 2014 Sorry, I keep forgetting that the function "Time2Str" already uses gettimetick(2), so it's cancelling out the time with each other. I updated my first post, with the fix. Quote Share this post Link to post Share on other sites
0 Alexandria 53 Posted December 29, 2014 (edited) Sorry, I keep forgetting that the function "Time2Str" already uses gettimetick(2), so it's cancelling out the time with each other. I updated my first post, with the fix. It is working, thank you ! Edited December 29, 2014 by Alexandria Quote Share this post Link to post Share on other sites
Hello there,
I would like to add a message to my healer, it must tell how much they have to wait to being healed again.
Example:
mes "You have to wait 12 seconds to be healed again."
healer.txt
Edited by AlexandriaShare this post
Link to post
Share on other sites