Added Autolooting Enable / Disable works with /Not and /Only. add to e3_loot.inc Code: |------------------------------------------------------- |Enable or disable autolooting | #event AutoLoot "<#1#> AutoLoot #2#" SUB EVENT_AutoLoot(line, ChatSender, AutoLootSetting) /if (${Debug} || ${Debug_Loot}) /echo |- EVENT_AutoLoot ==> /if (!${checkEventArgs[${ChatSender},${line},U,${AutoLootSetting}]}) /return /if (${Select[${c_eventArgData},On,Off]}) { /if (${c_eventArgData.Equal[On]}) { /varset Auto_Loot TRUE } else { /varset Auto_Loot FALSE } /bc Auto Loot Set to ${Auto_Loot} } else { /if (${c_eventArgChatSender.Equal[${Me}]}) { /echo Valid Settings: On, Off } } /if (${Debug} || ${Debug_Loot}) /echo <== EVENT_AutoLoot -| /RETURN add to Sub loot_Background_Events in e3_loot.inc Code: /doevents AutoLoot add alias to Macroquest.ini Code: /autolooton=/bc AutoLoot On /autolootoff=/bc AutoLoot Off
Added a manual loot_area trigger. Handy for looting grey con mobs that dont trigger auto loot. Works with /Not and /Only. I'm not sure if i have checkEventArgs called correctly but it works so... Add to e3_loot.inc: Code: |------------------------------------------------------- |Manually trigger a looting cycle | #event LootUp "<#1#> LootUp #2#" SUB EVENT_LootUp(line, ChatSender, LootSetting) /if (${Debug} || ${Debug_Loot}) /echo |- EVENT_LootUp ==> /if (!${checkEventArgs[${ChatSender},${line},U,${LootSetting}]}) /return /declare AutoLootTrack bool local /varset AutoLootTrack ${Auto_Loot} /bc Manual Loot Cycle Triggered /varset Auto_Loot TRUE /call loot_Area /varset Auto_Loot ${AutoLootTrack} /if (${Debug} || ${Debug_Loot}) /echo <== EVENT_LootUp -| /RETURN Add to Sub loot_Background_Events: Code: /doevents LootUp add alias to Macroquest.ini Code: /LootUp = /bc LootUp