Add "Teleport to Abyss" to Menu Entry Swapper

Add an option for "Teleport to Abyss" for the Menu Entry Swapper plugin. This affects the mage of zamorak NPC.
This commit is contained in:
FatalWaffles
2018-04-14 03:30:42 -04:00
committed by Adam
parent f193f22f8d
commit 2c9236eba1
2 changed files with 17 additions and 1 deletions

View File

@@ -180,6 +180,17 @@ public interface MenuEntrySwapperConfig extends Config
@ConfigItem(
position = 13,
keyName = "swapAbyssTeleport",
name = "Teleport to Abyss",
description = "Swap Talk-to with Teleport for the Mage of Zamorak"
)
default boolean swapAbyssTeleport()
{
return true;
}
@ConfigItem(
position = 14,
keyName = "swapTrade",
name = "Trade",
description = "Swap Talk-to with Trade on NPC<br>Example: Shop keeper, Shop assistant"
@@ -190,7 +201,7 @@ public interface MenuEntrySwapperConfig extends Config
}
@ConfigItem(
position = 14,
position = 15,
keyName = "swapTravel",
name = "Travel",
description = "Swap Talk-to with Travel, Take-boat, Pay-fare, Charter on NPC<br>Example: Squire, Monk of Entrana, Customs officer, Trader Crewmember"

View File

@@ -336,6 +336,11 @@ public class MenuEntrySwapperPlugin extends Plugin
swap("pickpocket", option, target, true);
}
if (config.swapAbyssTeleport() && target.contains("mage of zamorak"))
{
swap("teleport", option, target, true);
}
if (config.swapBank())
{
swap("bank", option, target, true);