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]
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: