adjusted loot and hiding function

the hide function in prompt.lua should be able to either send hide
before looting or send hide after looting.