Jump to content
The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades. ×
  • 0

[RESOLVED] adding more maps on "set"


Gouki

Question


  • Group:  Members
  • Topic Count:  88
  • Topics Per Day:  0.05
  • Content Count:  261
  • Reputation:   13
  • 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:  50
  • Topics Per Day:  0.01
  • Content Count:  1859
  • Reputation:   298
  • 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...