Ok... so the easy part is calling the combat macro, just
visit_url("fight.php?action=macro&whichmacro=<MacroNumber>",true);
The slightly more difficult part is getting the macro name->macro number mapping... but...
a visit to account_combatmacros.php has some html wrapped around the important bits of html
Upon logging in, mafia could parse the macro name/id map and store it in our preferences file..
Then in the custom combat scripts a new command "macro" could be added which would accept either a string or a number, and call the macro.. right?
If too much network traffic is a concern, just have a button/option "Update Combat Macros" that loads the map, and only look up the mapping when that button/option is selected.
visit_url("fight.php?action=macro&whichmacro=<MacroNumber>",true);
The slightly more difficult part is getting the macro name->macro number mapping... but...
a visit to account_combatmacros.php has some html wrapped around the important bits of html
Code:
<b>Current Macros: </b>
<select name="macroid">
<option value="{macro#1}">{MacroName1}</option>
<option value="{macro#2}">{MacroName2}</option>
.
.
.
<option value="{macro#N}">{MacroNameN}</option>
</select>
Upon logging in, mafia could parse the macro name/id map and store it in our preferences file..
Then in the custom combat scripts a new command "macro" could be added which would accept either a string or a number, and call the macro.. right?
If too much network traffic is a concern, just have a button/option "Update Combat Macros" that loads the map, and only look up the mapping when that button/option is selected.
Last edited: