Add a message to my healer

Alexandria

New member
Messages
341
Points
0
Location
localhost
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

 

Attachments

Last edited by a moderator:
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.

 
Last edited by a moderator:
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.

 
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.

 
Back
Top