Relay Clan Switcher: relay_clanhop.ash

coderanger

Member
This relay script creates a little drop down box to switch between clans on your whitelist.

screenshot.png

[size=+2]To Install[/size]

Code:
svn checkout https://github.com/coderanger/kol-clanhop/branches/clean

While it can be used directly from the relay menu, the real point is to add it to the UI permanently. You can create a relay/game.ash override script containing:

Code:
void main() {
   visit_url()
    .replace_string('<frame name=charpane src="charpane.php"></frame>', '<frameset id=charclan rows="*,40px"><frame name=charpane src="charpane.php"></frame><frame name=clanhop src="relay_clanhop.ash"></frame></frameset>')
    .writeln();
}

I don't have this override in the repo because it could easily conflict with other modifications to game.ash. You can change the size or position by adjusting the rows configuration or order of the frames.
 
Top