Jump to content
  • 0

Healer Stuck at First heal/click


Question

Posted (edited)

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

4 answers to this question

Recommended Posts

Posted (edited)

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
Posted

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;
}
Posted

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;
}

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...