Hi, currently I am working on routine, but I am facing some problems that I can't solve, so I want to drop a post here to see if there is something I missed or not noticed 
1. I want to Portal to town @ some condition, I success to call portalscroll to town method, however, portal were made but the character didn't go into it, the following is a snap of code.
2. I want to Leap Slam to a random point (not specify by object, but distance should be larger than a value), but I can't find method to create an object to cast the spell.
3. My routine will check for health percentage of character in BestTarget property, if health% dropped to a point then take some action (see it in https://www.thebuddyforum.com/exilebuddy-forum/combat-routines/168095-marauder-cr-modified-default-exile-cr-updated-17-jun-2014-a.html). But I noticed that the log section will spam Log.Debug message when it get into this property,
----3.1 Is registered spells didn't cast immediately get an available target?
----3.2 Some actions I'd like to take (e.x. logout) required immediately perform, is there a way to implement it?
thanks for your time! hope you guys have a nice day

1. I want to Portal to town @ some condition, I success to call portalscroll to town method, however, portal were made but the character didn't go into it, the following is a snap of code.
Code:
if (true)
{
PortalScrollToTownCoroutine(100, -1); // the bot will stuck @ here and not process to the next line after portal created
Log.Debug("Portal to town");
}
2. I want to Leap Slam to a random point (not specify by object, but distance should be larger than a value), but I can't find method to create an object to cast the spell.
3. My routine will check for health percentage of character in BestTarget property, if health% dropped to a point then take some action (see it in https://www.thebuddyforum.com/exilebuddy-forum/combat-routines/168095-marauder-cr-modified-default-exile-cr-updated-17-jun-2014-a.html). But I noticed that the log section will spam Log.Debug message when it get into this property,
----3.1 Is registered spells didn't cast immediately get an available target?
----3.2 Some actions I'd like to take (e.x. logout) required immediately perform, is there a way to implement it?
thanks for your time! hope you guys have a nice day
