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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

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