Moderator: MacroQuest Developers



Code: Select all
| Example tradeskill macro
sub main
| set this to 1 if you are using pack8 as your combiner
| e.g. sewing kit, jewelkit, etc
| if set to 0, stand in front of the enviro cause it clicks the center of the screen
/declare usepack8 int outer 1
/declare x int local
| open the inv and all the packs
/if (!${Window[InventoryWindow].Open}) /keypress i
/keypress OPEN_INV_BAGS
/delay 3
| because this is a container too, it must be the last
| one opened or we don't know where to send the click
/if (!${usepack8}) {
/if (!${Window[TradeskillWnd].Open}) {
/click left center
/delay 5s ${Window[TradeskillWnd].Open}
/if (!${Window[TradeskillWnd].Open}) {
/echo not open
/endm
}
/notify TradeskillWnd ExperimentButton leftmouseup
/delay 5
}
}
:top
/if (${usepack8}) {
/call AddComp "Lettuce" 1
/if (${Macro.Return}) {
/beep
/endm
}
/call AddComp "Carrot" 2
/if (${Macro.Return}) {
/beep
/endm
}
/call AddComp "Turnip" 3
/if (${Macro.Return}) {
/beep
/endm
}
} else {
/call AddComp "Fishing Grubs" 1
/if (${Macro.Return}) {
/beep
/endm
}
/call AddComp "Water Flask" 2
/if (${Macro.Return}) {
/beep
/endm
}
}
:ClearCursor
/if (${Cursor.ID}) {
/notify InventoryWindow IW_CharacterView leftmouseup
/goto :ClearCursor
}
/if (!${usepack8}) {
/notify ContainerWindow Container_Combine leftmouseup
| need a replacement here
|/delay 10s !${InvSlot[Enviro3].Item.ID}
/delay 2s ${Cursor.ID}
} else {
/notify pack8 Container_Combine leftmouseup
/delay 2s ${Cursor.ID}
}
/doevents
:ClearCursor2
/if (${Cursor.ID}) {
/notify InventoryWindow IW_CharacterView leftmouseup
/delay 1s
/goto :ClearCursor2
}
/goto :top
/return
sub AddComp
/declare islot int local
/varset islot ${FindItem[=${Param0}].InvSlot}
/if (${islot}) {
/echo adding ${Param0} from slot ${islot} to slot ${Param1}
/nomodkey /ctrl /itemnotify ${islot} leftmouseup
/if (${usepack8}) {
/nomodkey /itemnotify in pack8 ${Param1} leftmouseup
} else {
/nomodkey /itemnotify enviro${Param1} leftmouseup
}
/delay 3
} else {
/echo Could not find << ${Param0} >>
|/call EndCombines
/endm
/return 1
}
/return 0




Code: Select all
--- MQ2Main/EQData.h Mon Jan 19 17:26:36 1970
+++ MQ2Main/EQData.h Mon Jan 19 17:26:36 1970
@@ -1171,17 +1171,17 @@
/*0x448*/ DWORD Members;
/*0x44c*/ struct _FELLOWSHIPMEMBER FellowshipMember[0xc];
/*0x83c*/ DWORD Unknown0x83c; // timestamp for something
-/*0x840*/ BYTE Unknown0x840[0x180];
-/*0x9c0*/ FLOAT CampfireY;
-/*0x9c4*/ FLOAT CampfireX;
-/*0x9c8*/ FLOAT CampfireZ;
-/*0x9cc*/ WORD CampfireZoneID; // zone ID where campfire is
-/*0x9ce*/ WORD InstanceID;
-/*0x9d0*/ DWORD CampfireTimestamp; // CampfireTimestamp-FastTime()=time left on campfire
-/*0x9d4*/ DWORD Unknown0x878; // same as FellowshipID
-/*0x9d8*/ DWORD Unknown0x87c; // campfire type?
-/*0x9dc*/ DWORD Campfire; // do we have a campfire up?
-/*0x9e0*/
+/*0x840*/ BYTE Unknown0x840[0x18c];
+/*0x9cc*/ FLOAT CampfireY;
+/*0x9d0*/ FLOAT CampfireX;
+/*0x9d4*/ FLOAT CampfireZ;
+/*0x9d8*/ WORD CampfireZoneID; // zone ID where campfire is
+/*0x9dc*/ WORD InstanceID;
+/*0x9e0*/ DWORD CampfireTimestamp; // CampfireTimestamp-FastTime()=time left on campfire
+/*0x9e4*/ DWORD Unknown0x878; // same as FellowshipID
+/*0x9e8*/ DWORD Unknown0x87c; // campfire type?
+/*0x9ec*/ DWORD Campfire; // do we have a campfire up?
+/*0x9f0*/
} FELLOWSHIPINFO, *PFELLOWSHIPINFO;
// offsets are relative to their position in _LAUNCHSPELLDATA
@@ -1369,10 +1369,8 @@
/*0x11c1*/ BYTE Unknown0x11c1[0x3];
/*0x11c4*/ DWORD GroupMemberTargeted; // 0xFFFFFFFF if no target, else 1 through 5
/*0x11c8*/ BYTE Unknown0x11c8[0x184];
-// dkaa note: _FELLOWSHIPINFO changed from 0x9c0 to 0x9cc on 20110629
-// which means FS has been broken for some time
-/*0x134c*/ struct _FELLOWSHIPINFO Fellowship; // size 0x9e0
-/*0x1d2c*/ BYTE Unknown0x1d2c[0x64];
+/*0x134c*/ struct _FELLOWSHIPINFO Fellowship; // size 0x9f0
+/*0x1d3c*/ BYTE Unknown0x1d2c[0x48];
/*0x1d84*/ void *vtable2;
/*0x1d88*/ DWORD Unknown0x1d88;
/*0x1d8c*/ struct _SPAWNINFO *pSpawn;



Code: Select all
15 September 2011 by ieatacid
- Updated for today's patch
19 August 2011 by ieatacid
- Fixed some campfire stuff