Jump to content
  • 0

This is not working.


Tonetzkii

Question


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  323
  • Reputation:   9
  • Joined:  11/19/11
  • Last Seen:  

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

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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

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