Request: Run at startup..

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Request: Run at startup..

Post by kagonis » Wed Jul 09, 2003 10:07 pm

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 :)

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Thu Jul 10, 2003 5:49 pm

So only I think this is a good idea? Ah well, I can live without. :)

fwiggles
a hill giant
a hill giant
Posts: 161
Joined: Mon Jun 17, 2002 8:29 pm

Post by fwiggles » Thu Jul 10, 2003 8:22 pm

It sounds cool to me, i don't know how much i would use it. But hey ya never know
[color=red]Latest survey shows that 3 out of 4 people make up 75% of the world's population.[/color]

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Thu Jul 10, 2003 9:29 pm

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 :)

User avatar
BlueSkies
a ghoul
a ghoul
Posts: 132
Joined: Tue Oct 01, 2002 6:22 pm

Post by BlueSkies » Thu Jul 10, 2003 9:37 pm

Neat idea, but atm kinda low priority I'd imagine. :) I dunno -- if it's relatively easy I might give it a go.
Live your dreams! Blue Skies everyone

eq_freak
a ghoul
a ghoul
Posts: 105
Joined: Mon Jun 24, 2002 7:17 am

Post by eq_freak » Fri Jul 11, 2003 8:57 am

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.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Jul 11, 2003 11:39 am

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.
MQ2: Think of it as Evolution in action.

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Fri Jul 11, 2003 11:46 am

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.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Jul 11, 2003 2:35 pm

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.
MQ2: Think of it as Evolution in action.

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Fri Jul 11, 2003 3:23 pm

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.

User avatar
auth
a ghoul
a ghoul
Posts: 84
Joined: Sun Apr 13, 2003 12:47 am

Post by auth » Fri Jul 18, 2003 10:48 am

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...

Chem
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Jan 08, 2003 9:47 am

I seem to remember ...

Post by Chem » Fri Jul 18, 2003 2:29 pm

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.

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Sat Jul 19, 2003 7:59 am

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.

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Sat Jul 19, 2003 3:02 pm

Already did this... I'll submit it sometime this weekend
- Plazmic

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

Post by kagonis » Mon Aug 04, 2003 4:33 pm

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 :)