I honestly have not gold farmed with this method in sometime so I can't say if suicide botting in p2p is viable, though I would imagine it is. In f2p I'm sure it is of course.
Updated so closing gui no longer closes client. Lowered the energy threshold at which staminas are drank as well. Rather than repotting onlyafter the stam has expired I think lowering the threshold is the better option. If the player is out of energy and the stamina hasn't expired time will be wasted walking rather than running which seems to defeat the purpose of wanting to use stams.