What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Question] Facing some issue when developing routine

lau235623

New Member
Joined
Jun 3, 2014
Messages
27
Reaction score
0
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 :D

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 :D
 
1) You are setting your timeout to -1, so it will forever wait in the coroutine without doing anything. Try running it with await and a timeout period. If its creating the portal, but its not interacting with you, you can use,

TakeClosestPortalCoroutine

To take the closest portal. Make sure you handle the error and look for the portal object BEFORE calling that route, as you will go to to town and head back through the portal again.

2)Someone else will have to help with this. Most likely part of the explore poi would get you what you need.

3)All of this should be explained when the Routines documentation is finished.

If you want to share more of the code that is giving you issues, it would probably help more with debugging.
 
1) You are setting your timeout to -1, so it will forever wait in the coroutine without doing anything. Try running it with await and a timeout period. If its creating the portal, but its not interacting with you, you can use,

TakeClosestPortalCoroutine

To take the closest portal. Make sure you handle the error and look for the portal object BEFORE calling that route, as you will go to to town and head back through the portal again.

2)Someone else will have to help with this. Most likely part of the explore poi would get you what you need.

3)All of this should be explained when the Routines documentation is finished.

If you want to share more of the code that is giving you issues, it would probably help more with debugging.

1. I tried lots of parameter, like (1,1)(-1, -1)(10, -1)..etc... It just open a portal and stuck forever, sorry cannot attach the code since I've removed this function in my code

2. Maybe... I searched through the xml file w/ word "Random" and "Point" but can't get what I need :(

3. I remember the last D3 plugin I used, its API doc is like never released lol

Thanks for your time man! Actually I would like to try move some behavior to a new plugin (like portal to town etc..) to let the routine focus on the combat logic :D

Now I have my code @ https://www.thebuddyforum.com/exilebuddy-forum/combat-routines/168095-marauder-cr-modified-default-exile-cr-updated-17-jun-2014-a.html this post, please have a look if you are interested :D
 
The -1 is the issue with the wait. The command is PortalScrollToTownCoroutine(Distance, Timeout)

Setting the timeout to -1 is either going to do one of two things, instantly terminate the script, or let the script run forever. You should set the timeout to specific time, and if it times out, use take TakeClosestPortalCoroutine
 
Back
Top