Page 1 of 2

Request: Run at startup..

Posted: Wed Jul 09, 2003 10:07 pm
by kagonis
I was thinking if it was possible to implement a feature into MQ, that would run certain commands or perhaps an entire macro, once when logging in a character.

I was thinking that the commands to be run could be any command that can normally be used in a macro.

Add a section to the MacroQuest.ini file:

[Startup Commands]
c1=/gu Hello $char(guild), $char(name) $if(n,$strlen("$char(surname)")>0,"$char(surname)",",") at your service.
c2=/if "$char(name)"=="MyCharName" /macro Startup_MyCharName.mac
c3=/macro Startup_Global.mac

Above is just an example. My idea is that you can execute any MQ command that you can fit onto one line can be executed.

And to further make this very usefull it would be cool if there could be like a $server macro variable.

$server(id|name|shortname)
- id returns the id of the server currently logged on to.
- name returns the Long Name for the server currently logged on to.
- shortname returns (obviously enough) the shortname, ie the prefix used for when sending to chat channels on this server.

Examples:
You play on Firiona Vie
Code: /echo You are currently logged in on the $server(name) server.
Output: [MacroQuest] You are currently logged in on the Firiona Vie server.
Code: /echo People can send cross-server tells to you with the following command: > ;tell $server(shortname).$char(name) <
Output: [MacroQuest] People can send cross-server tells to you with the following command: > ;tell firiona.Mycharname <
Code: Your logfile for this character is named: eqlog_$char(name)_$server(id).txt
Output: Your logfile for this character is named: eqlog_Mycharname_90.txt

Also perhaps adding a "guild" flag to the $target and $char macroquest variables.

- guild returns the guildname of the current target/character, returns NULL if not member of any guild.

Example:
Code: /echo $target(name,clean) $if(n,$strlen("$target(surname)")>0,"$target(surname)",",") is $if("$target(guild)"!="NULL","a member of $target(guild)","not member of any guild")
Output: [MacroQuest] Somecharname Somesurname is a member of Some Guild Name

As allways, thanks for a great tool :)

Posted: Thu Jul 10, 2003 5:49 pm
by kagonis
So only I think this is a good idea? Ah well, I can live without. :)

Posted: Thu Jul 10, 2003 8:22 pm
by fwiggles
It sounds cool to me, i don't know how much i would use it. But hey ya never know

Posted: Thu Jul 10, 2003 9:29 pm
by kagonis
Well, I would use it to join specific channels depending on what character I logged in, and on what server, as well as do stuff like /announce on after join etc.

Also some people start the first 5 minutes after being logged in to summon the stuff, this could be handled by an autorun macro.

I'm sure other people could find a ton of features they would find nice to be done automatically right after they log in :)

Posted: Thu Jul 10, 2003 9:37 pm
by BlueSkies
Neat idea, but atm kinda low priority I'd imagine. :) I dunno -- if it's relatively easy I might give it a go.

Posted: Fri Jul 11, 2003 8:57 am
by eq_freak
Good idea.

Should be easy to do as well, just load the commands from the inifile and call DoCommand just after printing the MQ welcome message.

Posted: Fri Jul 11, 2003 11:39 am
by Mckorr
You do know that you can set EQ up to autojoin a chanel, and that these autojoins are character specific? You don't need MQ for that.

Posted: Fri Jul 11, 2003 11:46 am
by kagonis
Uhm McCorr..
/autojoin is client specific, not character specific.
ALL players that play from the client that have an /autojoin set, will join the same channels.

Posted: Fri Jul 11, 2003 2:35 pm
by Mckorr
Ah, my bad. Send an email to SoE and I bet they'd change that though, put the autojoin into the character ini instead of the global.

Posted: Fri Jul 11, 2003 3:23 pm
by kagonis
Hmm, that could work.
But I would still love to be able for it to do /announce on at startup by itself ;)

About sending a mail to SoE about anything, is something I have given up on ages ago. I have never seen worse Customer Service than what they have.

Posted: Fri Jul 18, 2003 10:48 am
by auth
I dunno, target has some pretty shitty customer service reps, but i guess they are one-up on the point that they have to listen to your problems (in person) but VI just has customer email sent through a spam filter...

I seem to remember ...

Posted: Fri Jul 18, 2003 2:29 pm
by Chem
I seem to remember the ability to autorun one of your hotkeys on login. I can't remember how it was done or if you still can, but you used to be able to tell the EQ client to activate a specified hotkey as soon as you logged in your character. If this is still possible then all you would need to do is setup a hotkey to run a macro and then have EQ run that hotkey when you login.

Posted: Sat Jul 19, 2003 7:59 am
by Valerian
well, when (if) I finish rewriting the entire macro handling code, it should be very easy to put in some kind of support for startup commands... however, changing all current macro handling code is going to take me a while, and making it all work is going to take even longer... maybe another dev can impliment this the old way before I can get it done a new way.

Posted: Sat Jul 19, 2003 3:02 pm
by Plazmic
Already did this... I'll submit it sometime this weekend

Posted: Mon Aug 04, 2003 4:33 pm
by kagonis
Hmm. I just checked the MacroQuest.ini file that is in CVS, to see if this was added.

I couldn't find ny new stuff in it, examples or such.. Was it added? :)

If it was added, and is the syntax as my example in the original post?
IE:
[Startup Commands]
c1=/echo lala

Thanks for the work Plazmic :)