Jump to content
  • 0

This is not working.


Question

Posted

Guys anyone fix my script. this is gm account lock map but its not working on rathena.

-	script	NOGMALLOWED	-1,{
OnPCLoadMapEvent:
if(getgmlevel() >= 10 && getgmlevel() < 99)
	if(getd(".gmMapCheck_" + strcharinfo(3)))
		warp "SavePoint", 0, 0;
end;

OnInit:
setarray .maps$[0],"quiz_02","rpc_01","rpc_02","rpc_room01","rpc_room02","prtg_cas03","payg_cas03","gefg_cas03","aldeg_cas03","arug_cas01","arug_cas03","schg_cas03";

for(set .@i, 0; .@i < getarraysize(.maps$[0]); set .@i, .@i + 1) {
	//set loadevent flag
	setmapflag  .maps$[.@i], mf_loadevent;

	//setup for non-loop based map check later on
	setd(".gmMapCheck_" + .maps$[.@i], 1);
}
}

1 answer to this question

Recommended Posts

Posted

rAthena doesn't use GM levels. The command still works, but likely the group IDs you have aren't identical to the GM levels (consider using getgroupid() instead).

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