Jump to content
  • 0

How to restrict Homulucus in a map?


Question

Posted

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.

2 answers to this question

Recommended Posts

  • 0
Posted

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

 

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