Jump to content
  • 0

[RESOLVED] adding more maps on "set"


Gouki

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.06
  • Content Count:  241
  • Reputation:   11
  • Joined:  08/12/20
  • Last Seen:  

Hi All,

Just want to ask how could I add more maps on the "set" script? I've tried using setarray or like adding comma, doing the || and &&, reviewed the scripts_command but can't find any..

maps to add
2012rwc_01
2012rwc_02
 

-	script	wardispell	-1,{

OnInit:
set .map$,"guild_vs3";  //HOW CAN I ADD MORE MAPS HERE?
setmapflag .map$[0],mf_loadevent;
end;

OnPCLoadMapEvent:
if( strcharinfo(3) == .map$ )
	while( .@i < 553 ){
		if(  .@i != SC_WEIGHT50 && .@i != SC_WEIGHT90 && .@i != SC_JAILED && .@i != SC_NOCHAT )
			sc_end .@i;
		set .@i,.@i + 1;
	}
end;
}

 

Edited by Almond Snicker
issue resolved
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1511
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

19 hours ago, Almond Snicker said:

Hi All,

Just want to ask how could I add more maps on the "set" script? I've tried using setarray or like adding comma, doing the || and &&, reviewed the scripts_command but can't find any..

maps to add
2012rwc_01
2012rwc_02
 


-	script	wardispell	-1,{

OnInit:
set .map$,"guild_vs3";  //HOW CAN I ADD MORE MAPS HERE?
setmapflag .map$[0],mf_loadevent;
end;

OnPCLoadMapEvent:
if( strcharinfo(3) == .map$ )
	while( .@i < 553 ){
		if(  .@i != SC_WEIGHT50 && .@i != SC_WEIGHT90 && .@i != SC_JAILED && .@i != SC_NOCHAT )
			sc_end .@i;
		set .@i,.@i + 1;
	}
end;
}

 

"guild_vs1","guild_vs2","guild_vs3", "guild_vs4";
 

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