• IS THIS SITE UGLY? Click "RG3" at the very bottom-left of this page to change it. To dismiss this notice, click the X --->
Resource icon

MQ2IniX 1.0

Download now: Join us with Level 2 access
or earn your way in with RedCents.
Other Authors
htw
Included in Very Vanilla
Very Vanilla Included! No need to download.
Command -> /inix FileName Section Key Value

Writes Key=Value to [Section] of FileName. If Value is not provided, the Key is deleted. If Key is not provided, the Section is deleted. All ^ characters provided in the parameters are replaced with $ characters.

testinix.mac
Code:
Sub Grimoire(string find, sting lookfor)
    /declare i int local
    /for i 1 to ${lookfor.Count[|]}
         /varset ${find} ${lookfor.Arg[${i},|]}
         /if (${Me.Book[${${find}}]} && ${Me.Level} >= ${Spell[${find}].Level}) /return
    /next i
/return

Sub Main
    /declare MyINI string outer "..\${MacroQuest.Server}_${Me.CleanName}.ini"
    /declare SetSP string outer
    /call Grimoire SetSP "|Yaulp XI Rk. II|Yaulp X|Yaulp IX|Yaulp VIII|Yaulp VII|"
    /inix ${MyINI} MQ2Melee downshit0 "/if (^{Me.Buff[${SetSP}].Duration} < 10000 && ^{Cast.Ready[${Spell[${SetSP}].ID}|gem]} && !^{Me.Mount.ID}) /casting ${Spell[${SetSP}].ID}|gem"
    /inix ${MyINI} MQ2Melee holyshit0 "/if (^{Me.Buff[${SetSP}].Duration} < 10000 && ^{Cast.Ready[${Spell[${SetSP}].ID}|gem]} && !^{Me.Mount.ID}) /casting ${Spell[${SetSP}].ID}|gem"
    /inix ${MyINI} MQ2Melee downflag0 1
    /inix ${MyINI} MQ2Melee holyflag0 1
    /melee load
/return
In that example macro, i scan spellbook for different version of yaulp spells and return first one found... then save downshit/holyshit to cast the spells if duration is less then 10 seconds and if the spells is ready to cast. I know yaulp is already supported into mq2melee ... this is just an example and a proof of the concept. all variables starting with a $ are parsed right away. Command will replace the ^ with $ enabling save data without evaluating it before... This open a door for macro to auto-configure some plugins behaviour, thanks for htw for his hard works coding this at my request a few years ago. I made a personal macro that setup all classes holyshits/downshits from command line like that... :)
Server Type
Live, Emu, TLP, Test Server
Author
s0rcier
Downloads
1
First release
Last update
Rating
0.00 star(s) 0 ratings
Top