THIS is the full text of my original marco post.
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
multi step process:
1 make a hotkey with the following text: /do_file_commands c:/strip.txt, and associate it with a hot key
2 make a second hot key with the folloing text: /do_file_commands c:/strip2.txt, and associate it with a hot key
we have to use 2 hotkeys because we're limited to 16 commands per execution.
If your short on hotkeys, I'll detail an alternative method at the end.
3: open a text editor and type the following, exatly as shown:
inventory unequip 1
inventory unequip 2
inventory unequip 3
inventory unequip 4
inventory unequip 5
inventory unequip 6
inventory unequip 7
inventory unequip 8
inventory unequip 9
inventory unequip 10
inventory unequip 11
inventory unequip 12
inventory unequip 13
inventory unequip 14
inventory unequip 15
inventory unequip 16
Save it as c:/strip.txt
4: make a second file, as follows:
inventory unequip 17
inventory unequip 18
inventory unequip 19
inventory unequip 20
and save it as c:/strip2.txt
Now theres many ways to get from A to B, but none of them will allow us to put this all on one command. You can chain command files, use multi-line macros, or use aliases, but the client will cut you off at 16 consecutive commands no matter which way you slice it. If you have 16 items or less equiped (ie you don't use ranged, use a 2 hander, and arent worried about your 2 activatible slots (which I don't belive take dammage like the rest of your gear does) then you can whittle this down to 1 set of commands. To find out what item is in which slot, use the following command: /info equiped [1-20]. Go through the numbers 1-20 to determine which slots you can skip.
Finaly, an alternative method of calling these commands if you don't have any hotkeys to spare: replace steps 1 and 2 with the following single step
make a 2 line macro, as follows:
/alias !:do_file_commands c:/strip.txt
/alias @:do_file_commands c:/strip2.txt
You can leave this in your macro list without linking it to a hot key, because you only need to execute it once per game session (even if you camp or switch toons- as long as you don't completely exit the game, the aliases will still work). What you've done is use aliases to create a custom command. Now, when the time comes, first type /! [enter] and you will strip your first 16 items, then type /@ [enter] and you will unequip your last 4 items.
Final note: It may very well be the case that this is all moot, for the following reason: while doing the betrayal quest, I remebered to strip my gear before getting killed by Lucan. When I revived in the commonlands, I instantly got agro from a skelly (nice place they dump you, btw...) I tried equiping so I could defend myself, but got the following message: you may only equip 1 item every 1.5 seconds while %t is trying to kill you. It could be the case that you can also not unequip items at a rate of more than 1 item per 1.5 seconds while under attack (I hadn't even engaged- I just had aggro). If this is indeed the case, then your SOL.
One error- I neglected to mention that counting starts with 0, not 1, so the numbering needs to be adjusted accordingly. As pointed out, outdated, and nerfed- but still conceptualy valuable, since it introduces a few concepts (aliases and do_file_commands) that are still largely unknown, despite my having done my best to spread the word on how to use them effciently.