Jump to content
  • 0

How to add custom restricted zones in restricted.txt


WhiteEagle

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

Hello everyone, I would like to define my own zones, but I get the error message that this does not exist.
Where do I have to define the custom zone?

I have entered my test here:

restricted.txt:

prt_fild04    mapflag    restricted 9

and in job_noenter_map.txt

// 8192 - restricted in zone 9
JOB_PRIEST,8192,100

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

I never use that one

 

try tou use the script

Quote

-    script    Sample    -1,{
OnInit:
set .Map$,"prt_fild01";        // Your custom map
setmapflag .Map$,mf_loadevent;
end;

OnPCLoadMapEvent:
if( strcharinfo(3) == .Map$ && BaseJob == Job_Priest ){
    dispbottom "Sorry, your job is not allowed to enter this map.";
    warp "SavePoint",0,0;
}
end;
}

 

source Emistry Script

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  461
  • Reputation:   61
  • Joined:  08/28/12
  • Last Seen:  

Thanks for your answer, but I already know this way to make it work like this.
But I want to use the job_noenter_map.txt
I don't find any line in the source where's is set the max of zones or similiar.

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  177
  • Reputation:   25
  • Joined:  12/24/14
  • Last Seen:  

11 hours ago, WhiteEagle said:

Thanks for your answer, but I already know this way to make it work like this.
But I want to use the job_noenter_map.txt
I don't find any line in the source where's is set the max of zones or similiar.

 

I try already to use the job_noenter_map.txt
but only block when you go to map use @warp
if you using npc warper, is not effected

 

I don't know, maybe another people have custom source ?

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