Merge pull request #1511 from FatalWaffles/abyssteleport
Add "Teleport to Abyss" to Menu Entry Swapper
This commit is contained in:
@@ -180,6 +180,17 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 13,
|
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",
|
keyName = "swapTrade",
|
||||||
name = "Trade",
|
name = "Trade",
|
||||||
description = "Swap Talk-to with Trade on NPC<br>Example: Shop keeper, Shop assistant"
|
description = "Swap Talk-to with Trade on NPC<br>Example: Shop keeper, Shop assistant"
|
||||||
@@ -190,7 +201,7 @@ public interface MenuEntrySwapperConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 14,
|
position = 15,
|
||||||
keyName = "swapTravel",
|
keyName = "swapTravel",
|
||||||
name = "Travel",
|
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"
|
description = "Swap Talk-to with Travel, Take-boat, Pay-fare, Charter on NPC<br>Example: Squire, Monk of Entrana, Customs officer, Trader Crewmember"
|
||||||
|
|||||||
@@ -336,6 +336,11 @@ public class MenuEntrySwapperPlugin extends Plugin
|
|||||||
swap("pickpocket", option, target, true);
|
swap("pickpocket", option, target, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.swapAbyssTeleport() && target.contains("mage of zamorak"))
|
||||||
|
{
|
||||||
|
swap("teleport", option, target, true);
|
||||||
|
}
|
||||||
|
|
||||||
if (config.swapBank())
|
if (config.swapBank())
|
||||||
{
|
{
|
||||||
swap("bank", option, target, true);
|
swap("bank", option, target, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user