Jump to content
  • 0

Help to edit this script


GGG2020

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  03/19/20
  • Last Seen:  

Hello everyone!

 ihave a script here . . but i want to disable command using this script if normal player are in  pvp and gvg map, this script works fine but the matter is i need to type all map of all pvp map and gvg map. . can anyone help me to make this script read the whole pvp and gvg map using a few code instead of typing all the pvp and gvg map one by one. .

thanks in advace. . have a nice day . .Newbie here . . thank you ?

 

 

OnQuest:
setarray .Map$[0],"new_1-1","prtg_cas01";
if(strcharinfo(3) == .Map$[0] || strcharinfo(3) == .Map$[1]){
  message strcharinfo(0),"This Command cannot be use in this Area!";
end;
}
warp "prt_in",284,129;
end;
 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

.@map$ = strcharinfo(3);
	if ( getmapflag( .@map$,mf_pvp ) ) || getmapflag( .@map$,mf_gvg ) {
		dispbottom .@atcmd_command$+" failed in PVP/GVG maps";
		end;
	}

 

  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   0
  • Joined:  03/19/20
  • Last Seen:  

3 hours ago, BeWan said:

.@map$ = strcharinfo(3);
	if ( getmapflag( .@map$,mf_pvp ) ) || getmapflag( .@map$,mf_gvg ) {
		dispbottom .@atcmd_command$+" failed in PVP/GVG maps";
		end;
	}

 

uhhh works fine.  . .thank you so much ?

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