Brahms Posted December 3, 2018 Posted December 3, 2018 (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 December 3, 2018 by Brahms Quote
1 n0tttt Posted December 4, 2018 Posted December 4, 2018 /** * 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; } Quote
0 Brahms Posted December 4, 2018 Author Posted December 4, 2018 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 Quote
Question
Brahms
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 Brahms2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.