Here is a little snippet to keep your toon safe:
Save that as safeport.iss and then: run safeport
You'll need to fire up the portui.xml first and add a Location called 'safe'
Or you can simply run safeport with the argument of what % of health to port out and where to port to.
Code:
function main(int minHealth, string portLoc)
{
if ${minHealth} < 10
minHealth:Set[10]
if ${portLoc.Length} < 1
portLoc:Set[safe]
while 1
{
if ${Me.HealthPct} <= ${minHealth}
Me:port[${portLoc}]
waitframe
}
}
You'll need to fire up the portui.xml first and add a Location called 'safe'
Or you can simply run safeport with the argument of what % of health to port out and where to port to.