Jump to content
  • 0

Script heal and Walk in city pls


WillJocker

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/27/22
  • Last Seen:  

Hi guys, am I right? I need a healing NPC that walks around the map and has a delay of 40 seconds. In addition to healing, this NPC must also summon the "sanctuary" ability every 10 minutes at the coordinate he is at, and if possible interact with nearby players saying good morning, good afternoon or simply a Hi. Can you help me please? Thank you for time

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  59
  • Topics Per Day:  0.01
  • Content Count:  1281
  • Reputation:   170
  • Joined:  06/12/12
  • Last Seen:  

check at this link 

 

 

 

Edited by hendra814
Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10018
  • Reputation:   2369
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,175,5	script	healer#sanc_main	4_F_KAFRA9,8,8,{
	end;
	
OnTouch:	
	npctalk "Hello "+strcharinfo(0)+", how are you?";
	end;
	
OnInit:
	npcspeed 200;
	initnpctimer;
	end;
	
OnTimer20000:
	getfreecell(strnpcinfo(4), .@x, .@y, 150, 150, 14, 14);
	npcwalkto .@x, .@y;
	end;

OnTimer40000:
	getmapxy(.@map$, .@x, .@y, BL_NPC);
	unitskillusepos getnpcid(0), PR_SANCTUARY, 5, .@x, .@y;
	initnpctimer;
	end;
}

 

  • Love 1
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...