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

Temporarily Pause GrindBot

benkoren

New Member
Joined
Jan 18, 2011
Messages
356
Reaction score
28
Greetings.

I am in the process of writing a simple plugin that creates a portal when near death. If the character dies, upon respawning the given portal will then be taken back to where the bot left off and resume. However, I have hit a snag in stopping/starting the bot. I am trying to use
Code:
[COLOR=#333333][FONT=Consolas]BotManager[/FONT][/COLOR][COLOR=#333333][FONT=Consolas].[/FONT][/COLOR][COLOR=#333333][FONT=Consolas]CurrentBot[/FONT][/COLOR][COLOR=#333333][FONT=Consolas].[/FONT][/COLOR][COLOR=#333333][FONT=Consolas]Stop[/FONT][/COLOR][COLOR=#333333][FONT=Consolas]();[/FONT][/COLOR]
to stop the bot and then interact with the portal. However, the bot never actually stops.

The full source is available here: https://github.com/benkoren/ExilePortalHelper/blob/master/PortalHelper.cs

Any guidance you can offer would be appreciated.

Ben
 
Cast on death - portal, allow an option to use these gems instead but still take the portal <3
 
This is not currently possible, but with some larger upcoming changes to the bot, it will be!

A simple work around for now would be to make a plugin that does this. You'd find a TP scroll in your inventory and use it. You'd then make sure to have some basic timers so it only executed once say 5s, and make sure there are no other portals nearby or just keep track of the areas you create a TP in (using LokiPoe.LocalData.TileHash).

This is the basic code for finding an item in your inventory and then using it.
Code:
var item = LokiPoe.ObjectManager.Me.Inventory.Main.FindItem("Portal Scroll");
if(item != null)
{
   item.Use();
}

You should be able to put that together into something simple, but if you need any help, just let us know.
 
Yes, the creation of the portal has already been coded, along with the timer and a distance check. This is already written in the form of a plugin (link in opening post). The part that is missing is getting the bot to take the portal in the town after death. I'm looking forward to the upcoming support you mentioned. Thanks.

Ben
 
Back
Top