Macro requests from before the user variable changes that broke all macros
Moderator: MacroQuest Developers
-
AarynD
- a lesser mummy

- Posts: 45
- Joined: Thu Jan 02, 2003 11:25 am
Post
by AarynD » Mon Jun 30, 2003 1:14 pm
Objective: Have a single macro which would determine your current zone, and do a search for named mobs in that zone for you. Named mobs could be input into each zone section by directly editing the source code for the macro. Output could be simply the /who npc responses generated in game, but should be limited to responses for the particular zone you are currently in. If the current zone is not listed in the macro, echo back "Zone not listed in macro." Layout of macro should be easy enough for manually adding in new zones, and adding new named mobs for each zone. Actual "tracking" of mobs isn't needed, just verification of whether each named mob is up in zone or not.
Anyone wanna tackle this?
- Aaryn
-
Valerian
- a grimling bloodguard

- Posts: 709
- Joined: Sun Jul 28, 2002 3:29 am
Post
by Valerian » Mon Jun 30, 2003 3:31 pm
Looks like a good thing to use INI file support for... but I'm not in the mood to write any scripts (more in the mood to delve into code)
Anyone want to test out the ini functionality with this?
-
wassup
- Official Guardian and Writer of TFM

- Posts: 1487
- Joined: Sat Oct 26, 2002 5:15 pm
Post
by wassup » Mon Jun 30, 2003 4:26 pm
I use something else that takes alot less effort to see if certain mobs are up.
I myself don't want a macro to start echoing anything at all. Any macro I write, or someone elses that I use gets any echos removed, period.
Low profile for me thanks.
Good luck with it though.
-
BlueSkies
- a ghoul

- Posts: 132
- Joined: Tue Oct 01, 2002 6:22 pm
Post
by BlueSkies » Mon Jun 30, 2003 4:47 pm
I can think of a great INI file layout:
[zonename]
mob1=nameofyourmob1
alert1=texttoechowhenmob1found
mob2=nameofyourmob2
alert2=texttoechowhenmob2found
mob3=nameofyourmob3
alert3=texttoechowhenmob3found
etc for each mob in each zone. :)
Live your dreams! Blue Skies everyone
-
AarynD
- a lesser mummy

- Posts: 45
- Joined: Thu Jan 02, 2003 11:25 am
Post
by AarynD » Mon Jun 30, 2003 5:33 pm
Honestly, the only real required output is the standard result of a /who npc command.
In fact, the meat of the macro could be simple codeblocks of:
/who npc "Arch Lich"
/who npc "High Priest"
/who npc "Blood Priest"
/who npc "Creator"
etc...
I just don't wanna have /who npc commands being issued for zones where they don't apply...
Anything beyond this is great, but it's just icing on the cake.
- Aaryn
-
BlueSkies
- a ghoul

- Posts: 132
- Joined: Tue Oct 01, 2002 6:22 pm
Post
by BlueSkies » Mon Jun 30, 2003 5:57 pm
Oh, well, you could use a series of if statements, like this:
(untested of course)
Code: Select all
#turbo 10
Sub Main
/if $zone=="somezone" {
/who npc "somemob"
/who npc "anothermob"
/who npc "thisguy"
} else /if $zone=="anotherzone" {
/who npc "runningout"
/who npc "ofthings"
/who npc "totype"
}
/return
Obviously change the zone and NPC names -- you can add more zones by adding another "else /if" after that last end brace "}".
Live your dreams! Blue Skies everyone
-
Jalapeno
- orc pawn

- Posts: 15
- Joined: Sat Jun 28, 2003 9:29 pm
- Location: Charleston, SC
Post
by Jalapeno » Mon Jun 30, 2003 6:55 pm
The point of using INI is that you could add mobs to your list on the fly and they are stored for later access. Not to mention the size of the macro would be reduced to about a 6 line loop. :p
-
BlueSkies
- a ghoul

- Posts: 132
- Joined: Tue Oct 01, 2002 6:22 pm
Post
by BlueSkies » Tue Jul 01, 2003 3:02 am
Huhu
*imagines Jala trying to write INI files on the back of a fly*
Huhuhuhuhu
Live your dreams! Blue Skies everyone
-
theafkxper
- a hill giant

- Posts: 207
- Joined: Sun Sep 08, 2002 6:41 pm
Post
by theafkxper » Fri Jul 11, 2003 10:19 pm
Well, i wrote one myself a couple weeks ago.
ill post some of it here caus eits just the same thing over and over and you prolly want different mobs than i do...
Code: Select all
|Checkspawns.mac
|by theafkxper
|6-10-03
sub Main
/zapvars
/goto :$zone
/echo Zone "$zone" not added into Database, please add!
/return
:Ssraeshza Temple
/alert add 1 A_Glyphed_Covered_Serpent |63 - 63 Raid Encounter
/alert add 1 Xerkizh_the_Creator |66 - 66 Raid Encounter
/alert add 1 Blood_of_Ssraeshza |65 - 65 Raid Encounter
/alert add 1 High_Priest_of_Ssraeshza |65 - 65 Raid Encounter
/alert add 1 Arch_Lich_Rhag`Zadune |63 - 63 Raid Encounter
/alert add 1 Vyzh'dra_the_Exiled |65 - 65 Raid Encounter
/alert add 1 Vyzh'dra_the_Cursed |66 - 66 Raid Encounter
/alert add 1 Emperor_Ssraeshza |66 - 66 Raid Encounter
/goto :checkSpawns
:checkSpawns
/who npc alert 1
|/who range 50 99 npc alert 1
/return
just paste in a new section, i personall yjust copied stuff from allakhazam and added back in the stuf fi wanted to check.
Program seems to work flawlesly OTHER than it crashing eqgame.exe the first time i run it, and i havent got that one figured out yet
g'luck
/afk
-
AarynD
- a lesser mummy

- Posts: 45
- Joined: Thu Jan 02, 2003 11:25 am
Post
by AarynD » Fri Jul 18, 2003 7:58 pm
/macro addmob
*Must have mob targeted to add to ini file.
Code: Select all
#define inifile "C:\moblist.ini"
#define MOBNAME v0
#define SECTION v3
#define KEYNAME v4
#define MOBCNT v5
sub main
/varset MOBNAME "$target(name,clean)"
/varset SECTION "$zone"
/varset MOBCNT $if(n,$instr("$SECTION",$ini("c:\moblist.ini",-1))==-1,0,$ini("c:\moblist.ini","$SECTION","HowManyMobs"))
/varadd MOBCNT 1
/varset KEYNAME "Mob"$int($MOBCNT)
/ini "c:\moblist.ini" "$SECTION" "HowManyMobs" $MOBCNT
/ini "c:\moblist.ini" "$SECTION" "$KEYNAME" "$MOBNAME"
/echo $MOBNAME is Added to list...
/return
Creates an INI file similar to the one described above... Basically, it's full of zone names as sections, and Mob1, Mob2, Mob3, etc with mob names to track.
Will work later to scan the file and search current zone for the mobs you have listed.
-
BlueSkies
- a ghoul

- Posts: 132
- Joined: Tue Oct 01, 2002 6:22 pm
Post
by BlueSkies » Fri Jul 18, 2003 9:12 pm
This is an excellent use of the ini functions. :) Great to see people making use of it :)
Live your dreams! Blue Skies everyone
-
Valerian
- a grimling bloodguard

- Posts: 709
- Joined: Sun Jul 28, 2002 3:29 am
Post
by Valerian » Sat Jul 19, 2003 7:52 am
heh... there are others making use of it but not releasing the macros... take this .ini file for example: can you guess what it's used in?
Code: Select all
[Trivials]
1=Silver Hematite Ring
20=Jaded Silver Ring
40=Electrum Malachite Bracelet
74=Electrum Cat Eye Bracelet
84=Electrum Carnelian Wedding Ring
95=Jaded Electrum Bracelet
106=Electrum Opal Amulet
118=Gold Malachite Bracelet
146=Golden Cat Eye Bracelet
156=Gold Carnelian Wedding Ring
167=Golden Jaded Bracelet
178=Golden Emerald Bracelet
188=Golden Sapphire Earring
204=Platinum Malachite Ring
218=Platinum Lapis Lazuli Necklace
220=Platinum Turquoise Bracelet
223=Platinum Hematite Ring
226=Platinum Cat Eye Necklace
228=Platinum Bloodstone Earring
231=Platinum Onyx Bracelet
234=Platinum Jasper Ring
236=Platinum Carnelian Wedding Ring
239=Platinum Rose Engagement Ring
242=Platinum Amber Ring
244=Jaded Platinum Ring
[Metals]
1=Silver
20=Silver
40=Electrum
74=Electrum
84=Electrum
95=Electrum
106=Electrum
118=Gold
146=Gold
156=Gold
167=Gold
178=Gold
188=Gold
204=Platinum
218=Platinum
220=Platinum
223=Platinum
226=Platinum
228=Platinum
231=Platinum
234=Platinum
236=Platinum
239=Platinum
242=Platinum
244=Platinum
[Gems]
1=Hematite
20=Jade
40=Malachite
74=Cat's Eye Agate
84=Carnelian
95=Jade
106=Opal
118=Malachite
146=Cat's Eye Agate
156=Carnelian
167=Jade
178=Emerald
188=Sapphire
204=Malachite
218=Lapis Lazuli
220=Turquoise
223=Hematite
226=Cat's Eye Agate
228=Bloodstone
231=Onyx
234=Jasper
236=Carnelian
239=Star Rose Quartz
242=Amber
244=Jade
-
AarynD
- a lesser mummy

- Posts: 45
- Joined: Thu Jan 02, 2003 11:25 am
Post
by AarynD » Sun Jul 20, 2003 1:18 pm
Ok, having a minor case of brain death here... Hoping someone will put me on the right track...
Assume an Ini file with this info:
Code: Select all
[Temple of Ssra]
HowManyMobs=2
Mob1=Arch Lich Rhag Zadune
Mob2=Blood of Ssra
[The Grey]
HowManyMobs=2
Mob1=Reverend Sshiznit
Mob2=Shattered Golem
Basically, each section heading is name of a zone. Mob1-MobX are the names of the mobs you wish to check for.
Can someone give me a brief outline of the best way to scan ini file, and have MQ search the zone for these mobs, and respond for each mob that is up?
- Aaryn[/code]
-
Caffeine
- decaying skeleton

- Posts: 6
- Joined: Fri Jul 09, 2004 2:47 am
Post
by Caffeine » Wed Jul 14, 2004 12:59 am
As far as finding ANY AND ALL named, I don't know how reliable this would be, I just know that I used to use good ol' SEQ, and that named mobs come with a # in front of their name. Basically searching for all mobs with the # in front might do the trick. Haven't tried it myself because I don't really have a use for this, but if it works, hey, easy solution. Anyway, good luck.
-
AndyZaft
- orc pawn

- Posts: 20
- Joined: Thu Jun 24, 2004 1:42 pm
Post
by AndyZaft » Wed Jul 14, 2004 2:48 pm
July 3rd or the previous build had a new switch added to the /who command.
/npc named works alright for most stuff, thanks to DKAA for that one