Merge pull request #1511 from FatalWaffles/abyssteleport

Add "Teleport to Abyss" to Menu Entry Swapper
This commit is contained in:
Adam
2018-04-15 10:44:03 -04:00
committed by GitHub
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);