lootsnippet.txt

Uploaded: 02 Sep, 2006
Previous uploads by this submitter: 0

Author: Valcados

Downloads: 76

One of my earlier snippets, this creates a "loot" command for pkillers. What distinguishes it from other snippets of this type is it guides you through adding a cset option so that high level imms can use cset to adjust which loot option to use: "random" to let people loot 3 randomized items, "single" to let people loot 1 specified item, "both" to enable both, "none" to disable looting altogether.

Syntax: loot (loot 3 random items from a random lootable corpse, if random is enabled)
Syntax: loot <corpse> (loot 3 items from corpse, if random is enabled)
Syntax: loot <item> (attempt to loot a specific item from a random lootable corpse, if enabled)
Syntax: loot <item> <corpse> (like "get", if enabled)

Since pkill is an area which is so sensitive to details, I doubt this will catch on very wildly, however, when I wrote the snippet, I did it with extremely verbose explanations of each step, so maybe newbie coders will be able to benefit from it.