Jump to content
  • 0
Sign in to follow this  
Alexandria

Add a message to my healer

Question

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 Alexandria

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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 by GmOcean

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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.

Share this post


Link to post
Share on other sites
  • 0

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 by Alexandria

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.