Jump to content
  • 0

How to restrict Homulucus in a map?


Skits

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.02
  • Content Count:  73
  • Reputation:   2
  • Joined:  02/10/20
  • Last Seen:  

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

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

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

  • 0

  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  931
  • Reputation:   13
  • Joined:  12/20/11
  • Last Seen:  

Try this. 

 

Credit to the owner of the script

https://pastebin.com/raw/Np73y4pw

 

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