Changing variables via chat

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

ZergKing
a lesser mummy
a lesser mummy
Posts: 45
Joined: Mon Mar 14, 2011 1:10 am

Changing variables via chat

Post by ZergKing » Thu Jun 09, 2016 6:00 am

I have a simple macro that works well, is very robust with zero flexibility.

I want to alter two variables on the fly, via channel messages. The first is a variable named delay.

#Event newtime "#*#Change to [newvalue??]?
/varset delay [newvalue??]

woobs
a grimling bloodguard
a grimling bloodguard
Posts: 627
Joined: Thu Dec 10, 2009 11:53 am

Re: Changing variables via chat

Post by woobs » Thu Jun 09, 2016 6:50 am

You just want to tell a toon to change the variable value?

Just say:

/bc toonname //varset delay xxx

Or, all your toons:

/bca //varset delay xxx

ZergKing
a lesser mummy
a lesser mummy
Posts: 45
Joined: Mon Mar 14, 2011 1:10 am

Re: Changing variables via chat

Post by ZergKing » Thu Jun 09, 2016 6:53 am

Thank you. I was hoping for a system that would allows others who dont have access to my EQBC (ie via a chat channel).

This, however, is a good solution and will give it a shot!

dewey2461
Contributing Member
Contributing Member
Posts: 1759
Joined: Sun Apr 17, 2005 1:53 am

Re: Changing variables via chat

Post by dewey2461 » Thu Jun 09, 2016 5:55 pm

Untested but this should be close.

Code: Select all

#Event NewTime "#*#set delay #1#"

Sub Event_NewTime(string line, string v1)
    |/echo Line = [${line}]
    |/echo v1 = [${v1}]
    /varset delay ${v1}
/return
You really shouldn't set a value like this because its pretty obvious to anyone looking at logs that you are bot'ing.

BCS chat doesn't go to the EQ server so it's a lot safer.

If you do want to give friends to access you might consider making the command sound like something normal like "slow down" or "hurry up"

User avatar
warlock45
a grimling bloodguard
a grimling bloodguard
Posts: 881
Joined: Sat Oct 06, 2007 8:32 pm

Re: Changing variables via chat

Post by warlock45 » Thu Jun 09, 2016 8:01 pm

or switch over to using MQIRC and just have your friends issue commands in a chat room.

ZergKing
a lesser mummy
a lesser mummy
Posts: 45
Joined: Mon Mar 14, 2011 1:10 am

Re: Changing variables via chat

Post by ZergKing » Fri Jun 10, 2016 1:03 am

It is to change delay and tanks for CHEAL chain. The idea is to have the command disguised as an open chat message, such as "Tank Swamp now! to %T", where Tank Swamp now! is the custom event. The same would be done for any changes in delay.