Page 2 of 4
Posted: Tue Jan 17, 2006 11:31 am
by drzoon
A_Druid_00 wrote:Are you 100% sure about that? I swear in my testing the confirmation box was popping up.
Well I didn't test it rigorously, but I did destroy a couple of things with /destroy, while I had "destroy confirmation" on. With /destroy they just disappeared, but when I clicked the item onto the destroy button in inventory, it popped up with the confirmation box. I'll test again at home tonight and make sure.
Posted: Mon Mar 06, 2006 9:31 am
by toomanynames
AD00, is this snippet current?
I'm asking because the looting for me is sparatic at best. Sometimes he'll open the corpse and loot, other times he'll just open wait a bit then close the corpse, etc. Sometimes he'll loot the items, sometimes not (even same items with =Keep in INI file).
I'm can't seem to get it consistant though so I am still troubleshoot this. The "loot bot" is a background session and I'm thinking this has something to do with it, are there special tweaks I should make to take this into consideration (e.g. if the session is getting 5fps while in background).
Posted: Mon Mar 06, 2006 9:38 am
by fearless
Is your FPS that low? That very may well be the problem if so.
Posted: Mon Mar 06, 2006 9:40 am
by Yunto?
toomanynames wrote:AD00, is this snippet current?
I'm asking because the looting for me is sparatic at best. Sometimes he'll open the corpse and loot, other times he'll just open wait a bit then close the corpse, etc. Sometimes he'll loot the items, sometimes not (even same items with =Keep in INI file).
I'm can't seem to get it consistant though so I am still troubleshoot this. The "loot bot" is a background session and I'm thinking this has something to do with it, are there special tweaks I should make to take this into consideration (e.g. if the session is getting 5fps while in background).
It work 100% for me, and my loot bot gets somewhere between 5 and 7 fps. It only renders once every 3 seconds in the background. Dont think its your fps.
Posted: Mon Mar 06, 2006 9:52 am
by A_Druid_00
I may have tweaked some things in my autobot version of it toomanynames. I haven't kept this post up to date, since it's in the general section. I was feeling generous the day I posted this inc here in snippets.
Posted: Tue May 09, 2006 12:54 pm
by outlander
If using /makecamp from MQ2MoveUtils you will want to add /target clear right before the /return of Sub LootMobs
/makecamp will only return you to camp if your target is clear, previously if the loot code left the body you would still have it targeted and therefor would not return to camp.
(you can thank A_Druid_00 for this bit)
If you don't want the target clear spam then change that to
/squelch /target clear
And yet a different version that will only clear the target if you have a target.
/if (${Taret.ID}) /squelch /target clear
Posted: Tue Jun 27, 2006 9:50 am
by Kiniktoo
this is weird, i cant get it to /call lootcorpse in my macro.
everything is spelled right, it just wont call.
the weird part is there is no error message
Posted: Tue Jun 27, 2006 5:17 pm
by mystikule
Pretty sure sub calling is case sensitive.
Posted: Wed Jun 28, 2006 9:25 am
by eqsolro
Nope, i use
works perfect.
You have
at start of mac? and you have the newest ninjadvloot.inc version ?
Posted: Wed Aug 02, 2006 8:02 pm
by Moeymoejoe
Fix to handle items with one comma in the name "Bloodstained Journal, Vol 5". All i do is strip out the first comma when accessing the ini file.
Code: Select all
Sub LootCorpse
/declare i int local
/declare LootList string local
/declare CurrentItem string local
/call CheckCursor
/loot
/delay 3s ${Corpse.Open}
/doevents CantLoot
/if (${Target.ID}==${ALDontLoot} && ${Spawn[${ALDontLoot}].ID}) /squelch /alert add 25 id ${ALDontLoot}
/delay 3s ${Corpse.Items} || ${Target.ID}==${ALDontLoot}
/if (${Corpse.Open} && ${Corpse.Items}) {
/declare loottotal int local
:ALlootlag
/varset loottotal ${Corpse.Items}
/delay 1s ${loottotal}!=${Corpse.Items}
/if (${loottotal}!=${Corpse.Items}) /goto :ALlootlag
/for i 1 to ${loottotal}
/varset CurrentItem ${If[${Corpse.Item[${i}].Name.Find[,]},${Corpse.Item[${i}].Name.Arg[1,,]}${Corpse.Item[${i}].Name.Arg[2,,]},${Corpse.Item[${i}].Name}]}
/if (${Corpse.Item[${i}].ID} && !${Select[${Ini[Loot.ini,"${Corpse.Item[${i}].Name.Left[1]}","${CurrentItem}"]},Ignore,Keep,Destroy]}) {
/if (${Corpse.Item[${i}].NoDrop}) /ini "loot.ini" "${Corpse.Item[${i}].Name.Left[1]}" "${CurrentItem}" Ignore
/if (!${Corpse.Item[${i}].NoDrop}) /ini "loot.ini" "${Corpse.Item[${i}].Name.Left[1]}" "${CurrentItem}" Keep
}
/if (${Ini[Loot.ini,"${Corpse.Item[${i}].Name.Left[1]}","${CurrentItem}"].NotEqual[Destroy]} && !${Me.FreeInventory} && (!${FindItemCount[=${Corpse.Item[${i}].Name}]} || (${FindItemCount[=${Corpse.Item[${i}].Name}]} && ${Corpse.Item[${i}].Stackable} && !${Corpse.Item[${i}].FreeStack})) || (${Corpse.Item[${i}].Lore} && ${FindItem[${Corpse.Item[${i}]}].ID}) || ${Ini[Loot.ini,"${Corpse.Item[${i}].Name.Left[1]}","${CurrentItem}"].Equal[Ignore]}) /varset LootList ${LootList}${Corpse.Item[${i}]},
/if ((!${Corpse.Item[${i}].Lore} || !${FindItem[${Corpse.Item[${i}]}].ID}) && (${Me.FreeInventory} || (${FindItemCount[=${Corpse.Item[${i}].Name}]} && ${Corpse.Item[${i}].Stackable} && ${Corpse.Item[${i}].FreeStack})) && ${Ini[Loot.ini,"${Corpse.Item[${i}].Name.Left[1]}","${CurrentItem}"].Equal[Keep]}) /call LootItem ${i} Keep right
/if (${Ini[Loot.ini,"${Corpse.Item[${i}].Name.Left[1]}","${CurrentItem}"].Equal[Destroy]}) /call LootItem ${i} Destroy left
/next i
/if (${Corpse.Items}) {
/if (${ReportLoot}) /${LootChannel} ${LootList} left on corpse.
/if (${Target.ID}) /squelch /alert add 25 id ${Target.ID}
/varset CorpseRotTimer ${CorpseRotTime}
}
}
:clickdoneffs
/nomodkey /notify LootWnd LW_DoneButton leftmouseup
/delay 5s !${Corpse.Open}
/if (${Corpse.Open}) /goto :clickdoneffs
/return
Posted: Wed Aug 02, 2006 8:21 pm
by fearless
very nice work
Posted: Mon Aug 21, 2006 9:11 pm
by Kiniktoo
sorry for being retarded.
i cant figure out the code to turn this into a mac.
as in, set hotbutton 1 to /mac ninja and it loots.
Posted: Mon Aug 21, 2006 9:22 pm
by toomanynames
Code: Select all
sub Main
/call SetupAdvLootVars
/call LootCorpse
/return
that should work I think
Posted: Mon Aug 21, 2006 9:30 pm
by Kiniktoo
the current macro has ended. no actions
Posted: Mon Aug 21, 2006 9:54 pm
by JimJohnson
ninja.mac
Code: Select all
#include Ninjadvloot.inc
SubMain
/call SetupAdvLootVars
:Loop
/if (${Target.Type.NotEqual[NPC]}) /call LootCorpse
/goto :Loop
/return