Jump to content
  • 0
Skits

How to restrict Homulucus in a map?

Question

How do i restrict creator's pet homulucus in a map so i can restrict it in my gold room so they can't leave it on aggressive and afk farm.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

a better approach, re-check it every minutes, since player can actually recall the homun after they entered the maps.

-	script	Sample	-1,{
OnInit:
	.map$ = "prt_fild01";
	setmapflag .map$,mf_loadevent;
	end;

OnPCLoadMapEvent:
	if(strcharinfo(3) == .map$) {
		if (gethominfo(0)) {
			mes "Sorry, Homunculus are not allowed in this Map. Please remove it.";
			close2;
			warp "SavePoint",0,0;
		}
		else {
			addtimer (60 * 1000), strnpcinfo(3)+"::OnPCLoadMapEvent";
		}
	}
	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...

Important Information

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