Jump to content
  • 0

Please Help Regarding Channel System


Brahms

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  149
  • Reputation:   3
  • Joined:  07/29/16
  • Last Seen:  

Sorry if i posted in a worng section. Just want to ask if theres a way to configure auto join in #map channel to specific areas, like auto join in Towns Only??

Thank you in advance..

Edited by Brahms
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  303
  • Reputation:   117
  • Joined:  12/10/16
  • Last Seen:  

	/**
	 * Channel config for map channel
	 * For the structure, see the 'channels' above
	 **/
	map: {
		name: "#map"
		alias: "[Map]"
		color: "Yellow"
		type: "CHAN_TYPE_MAP" // DO NOT CHANGE THIS VALUE
		delay: 1000
		autojoin: false
		leave: true
		chat: true
	}

conf/channels.conf

autojoin: true

 

Now, if you want to make it by script:

-	script	Channel_Town	-1,{

OnInit:

	setarray .@maps$[0],	"prontera","alberta","aldebaran","amatsu","ayothaya","brasilis","comodo","dewata",
				"ecl_in01","einbech","einbroch","dicastes01","geffen","gonryun","hugel","izlude",
				"jawaii","lasagna","lighthalzen","louyang","xmas","malangdo","malaya","manuk",
				"mid_camp","mora","morocc","moscovia","nameless_n","niflheim","payon","rachel",
				"splendide","thor_camp","umbala","veins","yuno";

	for(.@size = getarraysize(.@maps$);.@i < .@size;.@i++)
		setmapflag .@maps$[.@i],mf_loadevent;

	end;

OnPCLoadMapEvent:

	if(getmapflag(strcharinfo(3),mf_town))
		atcommand "@join #map";
	end;

}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.02
  • Content Count:  149
  • Reputation:   3
  • Joined:  07/29/16
  • Last Seen:  

15 minutes ago, n0tttt said:

	/**
	 * Channel config for map channel
	 * For the structure, see the 'channels' above
	 **/
	map: {
		name: "#map"
		alias: "[Map]"
		color: "Yellow"
		type: "CHAN_TYPE_MAP" // DO NOT CHANGE THIS VALUE
		delay: 1000
		autojoin: false
		leave: true
		chat: true
	}

conf/channels.conf

autojoin: true

 

Now, if you want to make it by script:


-	script	Channel_Town	-1,{

OnInit:

	setarray .@maps$[0],	"prontera","alberta","aldebaran","amatsu","ayothaya","brasilis","comodo","dewata",
				"ecl_in01","einbech","einbroch","dicastes01","geffen","gonryun","hugel","izlude",
				"jawaii","lasagna","lighthalzen","louyang","xmas","malangdo","malaya","manuk",
				"mid_camp","mora","morocc","moscovia","nameless_n","niflheim","payon","rachel",
				"splendide","thor_camp","umbala","veins","yuno";

	for(.@size = getarraysize(.@maps$);.@i < .@size;.@i++)
		setmapflag .@maps$[.@i],mf_loadevent;

	end;

OnPCLoadMapEvent:

	if(getmapflag(strcharinfo(3),mf_town))
		atcommand "@join #map";
	end;

}

 

Thank you again for helping me... ? Godbless

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