Not sure (newbie)
I'm not sure about the /timed command -- I stole it from another plugin that uses it (I figured if it's good enough for one plugin, why not another). Yeah -- I know I'm a newb when it comes to coding. It's been many a year since I last even tried to code anything (and that was in pascal if that tells you anything).
At any rate, I forgot to mention the other part of the bug (which Ech0b0y mentioned) which is any time you try and loot a npc corpse from then on, it spams the "MQ2Rez: looting <corpse>" message and the "Loot all, are you sure" confirmation dialog appears (and re-appears until the corpse is looted). I'm still 99% sure this is related to the new /lootall command that was added to the MQ2 source code on 12/9. I would think that anyone not using the newest compile would not notice this bug, but I'm thinking that after today's patch when the new compile comes out, it'll become a thorn in everyone's side.
I may try my hand at fixing the source code as I don't think it'll require a whole lot of coding, but I'm sure someone else could do it quicker and better. Besides anytime I mess with the code I forget to back it up when i download the new source code and always end up overwriting it. Then I have to go back and try and figure it out all over again.
Like I said, I'm an idiot!
EDIT: After a little bit of testing, it seems as though the problem is definately at the /loot command. Keeping it as
Code:
DoCommand(GetCharInfo()->pSpawn,"/multiline ; /corpse ; /timed 2s ; /loot");
the character will target his corpse and open the corpse but it will hang there and not loot. I changed that line to read:
Code:
DoCommand(GetCharInfo()->pSpawn,"/multiline ; /corpse ; /timed 2s ; /lootall");
and the character will go ahead and loot his corpse of all items. Either way, the plugin is not recognizing that you've looted your corpse because no matter which way you use, it continues to spam "Looting <corpse>" and giving the "Loot all?" dialog box whenever you try to loot a npc corpse (ironically, if you do not loot your corpse the first time, and open your corpse again, it still does nothing). I hope that gives a little clue to someone out there who has more knowledge than me to maybe fix this with this patch. Thanks!