test content
What is the Arc Client?
Install Arc

How-to: make channel chat commands

Archived PostArchived Post Posts: 1,156,071 Arc User
edited September 2009 in Controls and Interface
Getting frustrated that there are only /commands for sending to team, supergroup, zone and local*? Wish you could send to the chat channels you're on with similarly convenient commands, instead of having to click the drop down box to change active channels? Dislike having to bind every channel to a key on your keyboard?

Well you're in luck, now you can set up your own /commands to send to the chat channels you've joined!

Basic format:
/alias command channelsend "channel" {}

For example; you're in a channel called Hello World. You want to be able to send to that channel by typing "/hw dude, I'm using a chat alias!". You'd use the following command to set that up:
/alias hw channelsend "Hello World" {}

Cool huh? :D Be careful though. For some reason if you define the same alias twice, it crashes your client!

We can stop here but the unfortunate reality is that the CO client won't remember your aliasses if you restart it. We'll have to bind the channel commands to a single key that sets them all up. Use whatever key you like, but I use control+alt+F11 so that's what we'll be using in the following example. I use this because if you hit the button twice, it'll crash your client. Which sucks.

So say you have three channels you're on, "Hello World", "Bananas" and "We Love Kruunch". You want to use control+alt+F11 to set up the commands. You'd type the following ingame:
/bind control+alt+f11 "alias hw channelsend \"Hello World\" {}$$alias bana channelsend \"Bananas\" {}$$alias wlk channelsend \"We Love Kruunch\" {}"
There's a couple differences here from the command we used earlier. Because we're using double quotes ("") to define the keybind, we need to escape the double quotes around channel names by putting a backslash (\) in front of them. Then, to separate the commands we need to use $$, otherwise CO won't know where one starts and ends.

Now every time you log in for the first time after starting your client you hit the button and you can use your commands. Make sure not to do it after logging in a new character without restarting the client; then you'll crash.

I wish there was a better way to store the aliasses, but since the client doesn't save them and I can't find any file that holds them inside the CO directory this is the best way I knew how to solve the problem. If someone knows of a more elegant solution, please post it here and I'll incorporate it into the guide!

* These commands are /t, /sg, /zone, /s respectively
Post edited by Archived Post on

Comments

  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    Anyone else using these commands?
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    I vaguely remember something involving the keybind.txt file via COX to retain things beyond pure keybinds. I don't remember the specifics though.
  • Archived PostArchived Post Posts: 1,156,071 Arc User
    edited September 2009
    Thanks Augury!!

    Very useful :)
  • missmaeheymmissmaeheym Posts: 33 Arc User
    create a CommandAliases.txt file in your C:\Program Files (x86)\Champions Online_en\Champions Online\Live\localdata folder and it will automatically load the file when you launch the client. The command remains live across all characters.
Sign In or Register to comment.