Jump to content
  • 0

Auto Area Healer


PapaZola

Question


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

its posibble to make this npc will giving buff and heal when player near the npc

https://pastebin.com/R8QhmqTM

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

prontera,150,182,4	script	Healer	10173,5,5,{
OnTouch:
while( .@i < .sc_size ){
	sc_end .sc_status[.@i];
	set .@i,.@i + 1;
}

sc_start SC_BLESSING,.buff_duration,10;
sc_start SC_INCREASEAGI,.buff_duration,10;


percentheal 100,100;

while( getbrokenid(1) )
	// repair getbrokenid(1);
	repairall;
	 // atcommand "@repairall";
end;


OnInit:
set .buff_duration,600000;

setarray .sc_status,
	SC_STONE,SC_FREEZE,SC_STUN,SC_SLEEP,SC_POISON,SC_CURSE,SC_SILENCE,SC_CONFUSION,SC_BLIND,SC_BLEEDING,
	SC_QUAGMIRE,SC_AETERNA,SC_HALLUCINATION,SC_SLOWDOWN,SC_BERSERK,SC_CHANGEUNDEAD,
	SC_STRIPWEAPON,SC_STRIPSHIELD,SC_STRIPARMOR,SC_STRIPHELM;	
set .sc_size,getarraysize( .sc_status );
waitingroom "Free Heal",0;
end;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

6 hours ago, Haruka Mayumi said:

prontera,150,182,4	script	Healer	10173,5,5,{
OnTouch:
while( .@i < .sc_size ){
	sc_end .sc_status[.@i];
	set .@i,.@i + 1;
}

sc_start SC_BLESSING,.buff_duration,10;
sc_start SC_INCREASEAGI,.buff_duration,10;


percentheal 100,100;

while( getbrokenid(1) )
	// repair getbrokenid(1);
	repairall;
	 // atcommand "@repairall";
end;


OnInit:
set .buff_duration,600000;

setarray .sc_status,
	SC_STONE,SC_FREEZE,SC_STUN,SC_SLEEP,SC_POISON,SC_CURSE,SC_SILENCE,SC_CONFUSION,SC_BLIND,SC_BLEEDING,
	SC_QUAGMIRE,SC_AETERNA,SC_HALLUCINATION,SC_SLOWDOWN,SC_BERSERK,SC_CHANGEUNDEAD,
	SC_STRIPWEAPON,SC_STRIPSHIELD,SC_STRIPARMOR,SC_STRIPHELM;	
set .sc_size,getarraysize( .sc_status );
waitingroom "Free Heal",0;
end;
}

 

thanks its working

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...