Jump to content
  • 0

Healer Stuck at First heal/click


kiros

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   9
  • Joined:  04/16/12
  • Last Seen:  

This was working on eA but is not on rA,  i don't know what is changed on rA but the npc never clean the timer and it get stuck there, can any one be kind enough to help me?

 

currently running: rA 17368

x,x,x,x	script	Healer	1024,{
	if(@heal == 1){
		goto NoHeal;
	end;	}
		specialeffect2 14;
		percentheal 100,100;
		set @heal,1;
		attachnpctimer strcharinfo(0);
		initnpctimer;
	end;
	OnTimer30000:
		set @heal,0;
	end;

Edited by kiros
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Why not use Euphy's healer? You can set timer on that script easily.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   9
  • Joined:  04/16/12
  • Last Seen:  

well because i have more custom options attached to that script, like language changer and is a part of a bigger group of scripts

i already made...   though this is the only one not working, and for last i really like to know what have changed here

to avoid this problems on the future :)

 

Thanks in advance

Edited by kiros
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  181
  • Reputation:   53
  • Joined:  04/07/13
  • Last Seen:  

You could do it like this:

x,x,x,x    script    Healer    1024,{

    if (!((@healTime + 30) <= gettimetick(2))) {

        dispbottom "You have to wait until you can get healed again.";
        end;
    }
    
    specialeffect2 14;
    percentheal 100,100;

    @healTime = gettimetick(2);
        
    end;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  60
  • Reputation:   9
  • Joined:  04/16/12
  • Last Seen:  

Thank you @DeadlySilence it works like a charm.

but i change a bit the code to fit my needs,  anyone can use it if you feel like.

 

x,x,x,x	script	Healer::Healerr	922,{
	if (!((@healTime + 30) <= gettimetick(2))) {
		if(UNDL == 1 || UNDL == 0){
			message strcharinfo(0),"You have to wait 30 seconds until you can get healed again.";		
		}
		if(UNDL == 2){
			message strcharinfo(0),"Debes esperar 30 segundos para poder regenerarte de nuevo";		
	}
	end;	}
		specialeffect2 14;
		percentheal 100,100;
		@healTime = gettimetick(2);
	end;
}

 

Link to comment
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.   Paste as plain text instead

  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.

×
×
  • Create New...