Preview of MQ-20020704

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

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

Preview of MQ-20020704

Post by Plazmic » Tue Jul 02, 2002 1:41 pm

This is all done and being tested by a few IRC regulars...
If you beg nicely in #MacroQuest, perhaps one of them will tell you where you can get it early ;)

What I currently have done for 7/4

#Turbo: don't ask, you'll like it...

#define <string> <replacement>: A graceful hack to enable custom variable names without a large rewrite
#define varStackCount v50
/varset varStackCount 5
/if n $varStackCount==5 ...


Make /charinfo autosave itemdb.txt
Make /filter xxx autosave to ini

/endmacro: /delay = 0, timers=0, vars=0

$char(skill,xxx)

/click left npctrade <0-3,give>

/if … {
} else /if … {
} else {
}

$arg(“a long string”,2) -> “long”

Combines.h
13: Quests (Blackburrow Cask, Empty Seed Collection Bag)
46: Fishing (Tackle Box)

/filter macro none|enhanced|all
None will revert /who and /whotarget to the originals

/filter name add|remove name
/filter name remove all

Timer Events:
t0 ==0 -> Event_Timer
p0 = Timer #

Custom Triggers:
#event Name, “trigger”
Sub Event_Name
p0 = line

Events that went away:
Event_CastFizzle
Event_CastInterrupt
Event_CastResist
Event_Death
Event_CombineFail
Event_CombineSuceed
Event_Level
Event_Death
Event_SkillUp
Event_CastStart

If use used them, you can create a custom macro to replace it.
ie. for Event_CombineFail:
#event CombineFail "You lacked the skills to fashion the items together."

/cameraheight removed: This could be used to exploit client issues.


Cutting room floor:
Look at macro -> macro calling
/click left target if I somehow stumble across it quickly
Last edited by Plazmic on Wed Jul 03, 2002 12:49 pm, edited 5 times in total.
- Plazmic

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Tue Jul 02, 2002 1:48 pm

Salutations,
Go plazmic!

CyberTech
a ghoul
a ghoul
Posts: 97
Joined: Wed Jun 26, 2002 9:27 am

Post by CyberTech » Tue Jul 02, 2002 3:02 pm

... #define <string> <replacement>: A graceful ...

Classy solution, I like it. Thanks!

Any chance of can't see target and target too far events making it in?

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

Post by Plazmic » Tue Jul 02, 2002 3:05 pm

Custom Triggers:
#Event Name, “trigger”
Sub Event_Name
p0 = line

Code: Select all

#event TooFar "You are too far..."

Sub Event_TooFar
  /blah
/return
- Plazmic

CyberTech
a ghoul
a ghoul
Posts: 97
Joined: Wed Jun 26, 2002 9:27 am

Post by CyberTech » Tue Jul 02, 2002 3:08 pm

ahh i missed it, very nice.

Will you be removing the existing text-trigger events, or leaving them in?

Also, some ideas:

Parsing command for Event_Chat $p2 subparsing... ie, "heal charactername leads to $p2a=heal, $p2b=charactername

/filter [on/off] (regular filter arguments)
- to avoid toggling filters off when you wanted them on, or vice versa
- Or have all filters revert to pre-macro state when /endmacro performed

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

Post by Plazmic » Tue Jul 02, 2002 3:25 pm

substring stuff...
$arg(“a long string”,2) -> “long”

For filters, would the following change work?
/filter name add <blah>
/filter name remove <blah>
- Plazmic

User avatar
Nuad
a ghoul
a ghoul
Posts: 93
Joined: Thu Jun 27, 2002 11:43 am
Location: Berlin, Germany

Feature Request

Post by Nuad » Tue Jul 02, 2002 3:28 pm

/click left <NPC Name>
/click left give

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

Post by Plazmic » Tue Jul 02, 2002 3:33 pm

Naud:

/click left npctrade 0/1/2/3/give I can do...
/click left target would be a disassembler hunt (falls under my 'not enough RL time' disclaimer for magic)
- Plazmic

CyberTech
a ghoul
a ghoul
Posts: 97
Joined: Wed Jun 26, 2002 9:27 am

Post by CyberTech » Tue Jul 02, 2002 3:33 pm

Plazmic wrote:substring stuff...
$arg(“a long string”,2) -> “long”

For filters, would the following change work?
/filter name add <blah>
/filter name remove <blah>
Both of those would be perfect, as far as i'm concerned.

User avatar
Nuad
a ghoul
a ghoul
Posts: 93
Joined: Thu Jun 27, 2002 11:43 am
Location: Berlin, Germany

Post by Nuad » Tue Jul 02, 2002 4:02 pm

Plazmic wrote:Naud:

/click left npctrade 0/1/2/3/give I can do...
/click left target would be a disassembler hunt (falls under my 'not enough RL time' disclaimer for magic)
The half is better then nothing... and it is a lot more then someone who can't code at all can expect... thanks, /click left npctrade 0/1/2/3/give would help me a lot. :)

CyberTech
a ghoul
a ghoul
Posts: 97
Joined: Wed Jun 26, 2002 9:27 am

Post by CyberTech » Tue Jul 02, 2002 9:13 pm

another suggestion that'd solve a problem...

$sitting
Returns TRUE if you are sitting

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Another suggestion to /endmacro code

Post by Amadeus » Tue Jul 02, 2002 9:57 pm

It would be nice if /endmacro also sent the following to the interpreter:
/sendkey down *


...of course, I doubt if * works as a valid wildcard right now, but it would be nice if at least it sent ctrl and shift up. I end up all the time ending a macro in the middle and having all kinds of weirdness happen :)

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

New "event" code

Post by Amadeus » Tue Jul 02, 2002 9:59 pm

Couldn't you leave the old event_* calls grandfathered in? Otherwise, macros are going to have to be rewritten :(

Of course, maybe you're going to do this anyway, it just didn't appear as such according to your post.

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

Post by Plazmic » Wed Jul 03, 2002 3:56 am

All you need to support old macros is something similiar to:

Code: Select all

#event CombineFail "You lacked the skills to fashion the items together."
#event CombineSuceed "You have fashioned the items together to create something new!"
- Plazmic

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Wed Jul 03, 2002 11:17 am

Salutations,
I'd like something like

Code: Select all

#turbo <0-1000>
where

Code: Select all

#turbo 0
is the current #turbo speed and

Code: Select all

#turbo 1000
is the current macro speed (no #turbo at the top)