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

[Plugin] CancelLogout in combat

emc

New Member
Joined
Jun 15, 2012
Messages
190
Reaction score
3
[Plugin] CancelLogout & TP Interrupt Combat

What does this do?
Cancels logout whilst in combat (when there are enemies nearby). And then logs out when done! *new* SafeTownPortal tag allows you to enter combat if enemies are detected during TP cast.

Setup
Extract to your plugins folder.

Configuration
Edit the ./Plugins/CancelLogout/config.txt file to configure:
Line1: Logout in town? (True/False)
Line2: Enemy detection radius/aggro radius (if enemies are detected within this raidus then logout is not initiated)
Line3: Wait time before logging out, after combat is completed. (in seconds, gives you some time to loot etc..)

Interrupted TownPortal and Combat
Here is the problem, we can't detect what spell the player is casting; well I can't seem to find anything in the API that say the player is casting "Use Town Portal." So, here is the alternate solution: as of v1.1.0.1 CancelLogout introduces a new tag, called SafeTownPortal (after scouring through the forums to figure out how to implement this, credits to combat behavior plugins to show me the ropes).

SafeTownPortal Tag : This introduces a combat behaviour that watches for enemies when using the town portal, if enemies are detected, then combat mode is enabled. Once combat is done, the town portal spell is re-casted. Note, that you don't need CancelLogout plugin to be Enabled to use this, as the combat behaviours are loaded regardless of enabling CancelLogout.

How to use the SafeTownPortal Tag? Instead of having <UseTownPortal questId="1"/> in your profile xml file, replace it with <SafeTownPortal questId="1" />


[TABLE="class: grid, width: 500, align: left"]
[TR]
[TD]File[/TD]
[TD]Version[/TD]
[TD]Comments[/TD]
[/TR]
[TR]
[TD]View attachment CancelLogout.zip[/TD]
[TD]1.0[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]View attachment CancelLogout-1.0.0.1.zip[/TD]
[TD]1.0.0.1[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]View attachment CancelLogout-1.1.0.1.zip[/TD]
[TD]1.1.0.1[/TD]
[TD]Implemented a way to get back into combat after TP interruption.
[/TD]
[/TR]
[TR]
[TD]View attachment CancelLogout-1.1.0.2.zip[/TD]
[TD]1.1.0.2[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[/TABLE]
 
Last edited:
Awesome! I'll try this now. biggest problem I have is the bot logging out with Sarkoth running around the room almost dead =\
 
Awesome! I'll try this now. biggest problem I have is the bot logging out with Sarkoth running around the room almost dead =\

Is the plugin causing that? Or do you mean thats the problem you are trying to solve?
 
Is the plugin causing that? Or do you mean thats the problem you are trying to solve?


Sorry, that's the problem i'm trying to solve.

This plugin isn't working for me. I've enabled it with default config.txt and i just logged out while sarkoth was hitting me! Did anyone else sucessfully get this plugin to work? Maybe it's just me and some settings or something? Loaded plugins are ICool's sarkoth helper v0.1, and cancellogout


Also another thought i had. If this was to work wouldn't it stop you from logging out when there was no cellar and you have mobs beating on you as well?


EDIT: I'm using version .95 incase that may be a problem for this plugin.
 
Last edited:
Sorry, that's the problem i'm trying to solve.

This plugin isn't working for me. I've enabled it with default config.txt and i just logged out while sarkoth was hitting me! Did anyone else sucessfully get this plugin to work? Maybe it's just me and some settings or something? Loaded plugins are ICool's sarkoth helper v0.1, and cancellogout


Also another thought i had. If this was to work wouldn't it stop you from logging out when there was no cellar and you have mobs beating on you as well?

As a test, what you can do is log to a normal mode game, and test it out on a group of mobs. Run into them, they will beat on you. Try to logout, CancelLogout should cancel it, then logout after the mobs are dead. That is how I tested it. So the way the plugin works is:

1. Check if there are enemies within 50yds
2. Yes? Okay, are you trying to logout?
3. Yes? Okay, cancel it.
4. At this point, the bots combat profile should kick-in, which means you will kill the mobs. Go back to 1. No mobs left? Initiate town portal and leave game.
 
Thanks for your work!

Feedback.

Won't work for me, i use "Icool's Sarkoth farm helper" - maybe thats the problem?

Settings are:

True
20
1
------
It TP's until gettin hit and killed afk'ing :/
 
Ok, working as intended now. I upgraded to version .125 of the bot, and disabled all other plugins. It then would not let me logout with mobs around me. I then turned back on Icool's sarkoth farm helper and it still seemed to work. The other plugin turns off combat outside of the cellar, so maybe that's why this plugin will still allow you to logout with mobs beating on you? Because the other plugin turned combat off? That's the desired result anyway. =]
 
I am testing with icools stuff now, Ill see if i can make it work with that.
 
Hi,

I have fixed a bug (the one that was happening with sarkoth). Please test v1.0.0.1
 
hello,

Does this plugin cancel portal cast if aggro ?

thx
 
If you have aggro, then when the mob hits you the cast will be cancelled by default. The plugin doesn't do anything with portal casts. Just logouts.
 
Please let me know how this is working with Sarkorth profiles. Thanks.
 
This is not working for me.. When I'm in combat the plugin does not cancel the logout.
 
This is not working for me.. When I'm in combat the plugin does not cancel the logout.
Can you post your profile, or the location where you tested it? As far as I can tell, it has been running pretty smoothly for me. Thanks
 
Back
Top