Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
rawwar said:Hey NDawg ... quick question ... did ya do something different that makes me run macs from compiled folder not macro folder???
#Event CorpseTooFar "The corpse is too far away to summon."
Sub main
/declare LootTotal int
/declare LootSlot int
/declare LootLeft int
/varset LootLeft ${Param0}
| Check number items to be left on corpse specified. If not, default to 1 and explain parameter.
/if (!${Defined[Param0]}) {
/varset LootLeft 1
/echo Useage: /mac loot <# items to leave on corpse>
/echo Useage: /mac loot 0 <Loots all items>
/echo Using default LootLeft of ${LootLeft}
}
| Get corpse on target and continue if able to target your corpse.
/target mycorpse
/if (${Target.Type.NotEqual[CORPSE]} || !${Target.ID}) {
/popup Unable to target your corpse.
/echo Unable to target your corpse.
/endmacro
}
:PullCorpseClose
/sumcorpse
/doevents
/loot
/delay 1s
/if (${Me.State.NotEqual[BIND]}) { /goto :PullCorpseClose }
/varset LootTotal 0
| Try to get a accurate corpse item count to do all looting at one time.
:LootLag
/if (${LootTotal}!=${Corpse.Items}) {
/varset LootTotal ${Corpse.Items}
/delay 1s
/goto :LootLag
}
| Make sure not to loot to much/completely accidently.
/if (${LootTotal}<=${LootLeft}) {
/popup Looting aborted. Error in number items to be left on corpse.
/echo Looting aborted. Error in number items to be left on corpse.
/echo Do: /mac loot 0 To completely loot your corpse
/notify LootWnd DoneButton leftmouseup
/endmacro
}
| Set the number of items to actually loot leaving LootLeft number items on the corpse.
/varset LootTotal ${Math.Calc[${Corpse.Items}-${LootLeft}]}
/popup Looting all but ${LootLeft} item(s)
|Main Looting Loop
/for LootSlot 1 to ${LootTotal}
| Loot all items fast the first time around even with connection lag or the lag when looting bags.
:LootItem
/itemnotify loot${LootSlot} rightmouseup
/delay 5
/if (${Corpse.Item[${LootSlot}].ID}==NULL) {
/next LootSlot
} else {
/delay 5
/goto :LootItem
}
:DoneLooting
/notify LootWnd DoneButton leftmouseup
/popup Done looting. ${LootLeft} Item(s) left on your corpse.
/echo Done looting. ${LootLeft} Item(s) left on your corpse.
/endmacro
Sub Event_CorpseTooFar
/echo Corpse to far away to summon. Macro Ending.
/popup Corpse to far away to summon.
/face
/endmacro
ShiningWolf said:mq2itemdisplay = CTD if it has a focus effect.. also it's really really buggy if it does give info
captboom said:what was fix for piggyzone.
I compile my own but am having problems using magus's
#define PKT_UPDATE_POSITION 0x7B59
#define PKT_CHANNEL_MESSAGE 0x37E3
struct _MOVEPKT {
/*0000*/ unsigned short SpawnID;
/*0002*/ unsigned short TimeStamp;
/*0004*/ int DeltaHeading:16;
/*0006*/ int padding0020:16;
/*0008*/ float DeltaZ;
/*0012*/ float Y;
/*0016*/ int Animation:16;
/*0018*/ int Heading:16;
/*0020*/ float X;
/*0024*/ float DeltaY;
/*0028*/ float DeltaX;
/*0032*/ float Z;
} P;
Warrene said:New MQ source posted, dated 3/1/2006 early morning
NDawg said:will recompile when i get home from work
damonkeyman said:hm.. for some odd reason i keep getting random client crashes when using your compile.. only started 2 days ago.. when i run without mq up i have no issues.. sometimes can 2box with the compile for a few hours with no prob, or just log on and crash....