Jump to content
  • 0

Please Help Regarding Channel System


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

  • 1
Posted
	/**
	 * 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;

}

 

  • 0
Posted
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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...