Jump to content
  • 0

Block GM from entering certain map.


Question

13 answers to this question

Recommended Posts

  • 0
Posted
-	script	GMBlock	-1,{
OnPCLoadMapEvent:
	if(getgmlevel() == 60 || getgroupid() > 5){
		dispbottom "You can't enter this map.";
		warp "prontera",0,0;
	}
end;
 
OnInit:
setmapflag "job_sword1",mf_loadevent;
setmapflag "arena_room",mf_loadevent;
end;
 
}

Fixed it up for you. Try that now.

  • 0
Posted (edited)

Example : Map of job_sword1 and arena_rooom what code can i use to make it?

 

https://rathena.org/wiki/Getgroupid

 

Example:

if(getgroupid() == 99) {
mes "You cannot enter this map";
close;
}

( Change 99 to what group ID of GM you want to restrict )

 

 

Now if you also want to restrict them from using @warp to that map,

 

conf/groups.conf

 

Do not put / Remove this line on the GM group id:

permissions: {
		any_warp: true
	}
Edited by Scylla
  • 0
Posted
- script GMBlock1 -1,{
OnPCLoadMapEvent:
if(getgmlevel() == 60 || getgroupid() > 5){
dispbottom "You can't enter this map.";
warp "prontera",0,0;
end;
}
 
OnInit:
- script GMBlock2 -1,{
setmapflag "job_sword1",mf_loadevent;
setmapflag "arena_room",mf_loadevent;
end;
 
}

Having an error help! :(

post-18342-0-34562900-1456359979_thumb.png

  • 0
Posted

 

- script GMBlock1 -1,{
OnPCLoadMapEvent:
if(getgmlevel() == 60 || getgroupid() > 5){
dispbottom "You can't enter this map.";
warp "prontera",0,0;
end;
}
 
OnInit:
- script GMBlock2 -1,{
setmapflag "job_sword1",mf_loadevent;
setmapflag "arena_room",mf_loadevent;
end;
 
}

Having an error help! :(

 

 

I think you do not need to add that

- script GMBlock2 -1
  • 0
Posted (edited)

Oh my god, it wont stop warping me back to Prontera, once i enter to those map :( i mean it should warp me back once right? its like im using @go 0 non stop.

Edited by Noire
  • 0
Posted

Oh my god, it wont stop warping me back to Prontera, once i enter to those map :( i mean it should warp me back once right? its like im using @go 0 non stop.

 

Try making:

getgroupid() > 5

to:

getgroupid() < 10
  • 0
Posted
-	script	GMBlock	-1,{
OnPCLoadMapEvent:
	if(getgmlevel() == 60 || getgroupid() > 5){
		dispbottom "You can't enter this map.";
		warp "prontera",0,0;
	}
end;
 
OnInit:
setmapflag "job_sword1",mf_loadevent;
setmapflag "arena_room",mf_loadevent;
end;
 
}

Fixed it up for you. Try that now.

 

Still having an error for this script, once the GM enter the map script should work fine but when it warp back the GM back to prontera it wont stop. its like im using @go command non stop it keeps spawning and spawning.

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