Skip to content

Commit

Permalink
Added 3 more hotkeys to pktools - bump to 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ben93riggs committed Aug 13, 2020
1 parent f8c6502 commit d2d10ec
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 16 deletions.
2 changes: 1 addition & 1 deletion pktools/pktools.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

version = "0.5.0"
version = "0.6.0"

project.extra["PluginName"] = "PK Tools"
project.extra["PluginDescription"] = "Arsenal of PKing Tools"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
@ConfigGroup("pktools")
public interface PkToolsConfig extends Config
{

String commands = "protectitem, rigour, augury, piety, " +
"incrediblereflexes, ultimatestrength, steelskin, eagleeye, mysticmight, " +
"freeze, vengeance, teleblock, entangle, spec, wait, group1, group2, group3, group4";
"freeze, vengeance, teleblock, entangle, spec, wait, group1, group2, group3, group4, " +
"protectfrommagic, protectfrommissiles, protectfrommelee";

@ConfigItem(
keyName = "label1",
Expand Down Expand Up @@ -83,7 +83,40 @@ default Keybind key5()
}

@ConfigItem(
position = 7,
keyName = "key6",
name = "Hotkey 6",
description = "Activates script for this key.",
position = 7
)
default Keybind key6()
{
return new Keybind(KeyEvent.VK_6, 0);
}

@ConfigItem(
keyName = "key7",
name = "Hotkey 7",
description = "Activates script for this key.",
position = 8
)
default Keybind key7()
{
return new Keybind(KeyEvent.VK_7, 0);
}

@ConfigItem(
keyName = "key8",
name = "Hotkey 8",
description = "Activates script for this key.",
position = 9
)
default Keybind key8()
{
return new Keybind(KeyEvent.VK_8, 0);
}

@ConfigItem(
position = 10,
keyName = "key1_script",
name = "Key 1 Script",
description = PkToolsConfig.commands
Expand All @@ -94,7 +127,7 @@ default String key1_script()
}

@ConfigItem(
position = 8,
position = 11,
keyName = "key2_script",
name = "Key 2 Script",
description = PkToolsConfig.commands
Expand All @@ -105,7 +138,7 @@ default String key2_script()
}

@ConfigItem(
position = 9,
position = 12,
keyName = "key3_script",
name = "Key 3 Script",
description = PkToolsConfig.commands
Expand All @@ -116,7 +149,7 @@ default String key3_script()
}

@ConfigItem(
position = 10,
position = 13,
keyName = "key4_script",
name = "Key 4 Script",
description = PkToolsConfig.commands
Expand All @@ -127,29 +160,62 @@ default String key4_script()
}

@ConfigItem(
position = 11,
position = 14,
keyName = "key5_script",
name = "Key 5 Script",
description = PkToolsConfig.commands
)
default String key5_script()
{
return "freeze\nclickenemy";
return "protectfrommagic";
}

@ConfigItem(
position = 15,
keyName = "key6_script",
name = "Key 6 Script",
description = PkToolsConfig.commands
)
default String key6_script()
{
return "protectfrommissiles";
}

@ConfigItem(
position = 16,
keyName = "key7_script",
name = "Key 7 Script",
description = PkToolsConfig.commands
)
default String key7_script()
{
return "protectfrommelee";
}

@ConfigItem(
position = 17,
keyName = "key8_script",
name = "Key 8 Script",
description = PkToolsConfig.commands
)
default String key8_script()
{
return "freeze";
}

@ConfigItem(
keyName = "label2",
name = "Prayer",
description = "",
position = 12
position = 18
)
default Title label2()
{
return new Title();
}

@ConfigItem(
position = 13,
position = 19,
keyName = "autoPrayerSwitcher",
name = "Auto Prayer Switcher",
description = "Automatic Prayer Switching"
Expand All @@ -160,7 +226,7 @@ default boolean autoPrayerSwitcher()
}

@ConfigItem(
position = 14,
position = 20,
keyName = "autoPrayerSwitcherHotkey",
name = "Prayer Switch Toggle Hotkey",
description = "Hotkey to toggle the prayer switcher on/off"
Expand All @@ -171,7 +237,7 @@ default Keybind prayerKey()
}

@ConfigItem(
position = 15,
position = 21,
keyName = "autoPrayerSwitcherEnabled",
name = "Prayer Switcher Enabled",
description = "",
Expand All @@ -183,7 +249,7 @@ default boolean autoPrayerSwitcherEnabled()
}

@ConfigItem(
position = 16,
position = 22,
keyName = "prayerHelper",
name = "Prayer Helper",
description = "Draws icons to suggest proper prayer switches"
Expand All @@ -194,7 +260,7 @@ default boolean prayerHelper()
}

@ConfigItem(
position = 17,
position = 23,
keyName = "clickDelay",
name = "Click Delay",
description = "Sets the delay between clicks"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ else if (key_code == config.key5().getKeyCode())
{
addCommands(config.key5_script(), plugin);
}
else if (key_code == config.key6().getKeyCode())
{
addCommands(config.key6_script(), plugin);
}
else if (key_code == config.key7().getKeyCode())
{
addCommands(config.key7_script(), plugin);
}
else if (key_code == config.key8().getKeyCode())
{
addCommands(config.key8_script(), plugin);
}
}
catch (Throwable ex)
{
Expand Down
2 changes: 1 addition & 1 deletion plugins.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Ardy Iron Powerminer","description":"Automatically powermines iron","id":"ardyironpowerminer-plugin","releases":[{"date":"2020-08-13","sha512sum":"7A8467FD2A4F395728FE569AC4214F9188148C470586D8AC3A629FF8E3E21A7D06473620083F8207E9D3F2D42AF4481349F40AAA88F6C2A266E0FDC2E4B21F84","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/ardyironpowerminer-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Auto Theiver","description":"Automatically theives from npcs","id":"autotheiver-plugin","releases":[{"date":"2020-08-13","sha512sum":"A16496B37E5582C65C7B72B966CDDDCA009C1BAAB4E8846701BB6C5BFE384A5D61E9D5892665EDABE52AC46187612677E9C42E2EEE4BDFA945D4DFC716BDCD09","version":"0.5.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/autotheiver-0.5.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Cannon Reloader","description":"Automatically reload your cannon","id":"cannonreloader-plugin","releases":[{"date":"2020-08-13","sha512sum":"5F1573D3FBCFA47FA971F926F6E00B73533A98B9E0F1F2F066CD20FF8B32A60A3C1579B8C2DC9120BFB51AC25414F956AFE03F76221D8D4F4CA0B20D0BE6501C","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/cannonreloader-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Event Debugger","description":"","id":"eventdebugger-plugin","releases":[{"date":"2020-08-13","sha512sum":"C2767241D8F6108E83407179200EEE672DFE85CEC995B9B069740EF9022937E21FAB4453FCC20C22C221060492885AED6D30548B5443D5A7D133985584C0634C","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/eventdebugger-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Food Eater","description":"Automatically eats food","id":"foodeater-plugin","releases":[{"date":"2020-08-13","sha512sum":"D0DAE5719305357B7EB9A69B0F7E28BD35EF91EE1D522B01F874B6AC068597DDB458A6940893BC0EA537D6786DB4D9F1FE1A9C2C2C0F13604AD986887E4DD380","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/foodeater-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Item Combiner","description":"Automatically uses items on another item","id":"itemcombiner-plugin","releases":[{"date":"2020-08-13","sha512sum":"4424E036982413B4BEF4B7891618F8CC650649E275383D0DF2E581EBF2CAE52BFCBDF951843BF1CD014F65699EDCB9FACBFC7D1899C0BDFA4642DF273B0E42C0","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/itemcombiner-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Item User","description":"Automatically uses items on an object","id":"itemuser-plugin","releases":[{"date":"2020-08-13","sha512sum":"F2804C5F77A0FEF5CDABA4BB69854E7A77E4DF7A0A21BBA3DDEDB705C92ADCD6AA53D650082350000B55994851797CB8DBA03C1569A32F40BE3E668B1716B663","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/itemuser-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Jad Auto Prayer","description":"Auto click proper prayers against Jad","id":"jadautoprayer-plugin","releases":[{"date":"2020-08-13","sha512sum":"AEC61CB1E1141BCEA0F254913702E1D7422CA2872B67EE51624C2D32FEC8D862760E7325B1EC371117E6207BB3418A2BB53A97A91248E9B05DABB6F4ED78C652","version":"0.5.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/jadautoprayer-0.5.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Lava Crafter","description":"Lava Crafting Helper","id":"lavacrafter-plugin","releases":[{"date":"2020-08-13","sha512sum":"00E7CECD7CBB8CBE8B488833328CD921FF204A2F2D9278EC985A55A421DEEC97B902393FCA0AF52F35D4398FEB0A86A855F8E318EF2D3EEF29B2AB4BB8BD882C","version":"0.3.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/lavacrafter-0.3.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"NMZ Helper","description":"An automation utility for NMZ","id":"nmzhelper-plugin","releases":[{"date":"2020-08-13","sha512sum":"0B06041E532B81A770DA8230E09EA9C0B57C06B64AC9C6B37A3B59E06EA7CC7202170D615EB1C441EAAB4EB9CDD4E183D9C0233C5A106F1C467BA47287233B4B","version":"0.9.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/nmzhelper-0.9.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"PK Tools","description":"Arsenal of PKing Tools","id":"pktools-plugin","releases":[{"date":"2020-08-13","sha512sum":"028C49D0FC95FBBE6A62033DF494D48F4912D279D88F21DD8FC6CAD9A47C1C3B16445EDFE17E7589803DA5F0BA138263752207773B556AB1A9D83CC79EEDBB6F","version":"0.5.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/pktools-0.5.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Prayer Pot Drinker","description":"Automatically drink pray potions as needed","id":"prayerpotdrinker-plugin","releases":[{"date":"2020-08-13","sha512sum":"93E57447E0A83BF2639FDD8E80B2358195B5F0622BB079094E72A88A120C60AA3CF39EE5E4D72B4BE5BA2F335F4074201D5157DF29E4BC43903E9B6DC65759E8","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/praypotdrinker-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Special Attack User","description":"Automatically enables special attack","id":"specialattackuser-plugin","releases":[{"date":"2020-08-13","sha512sum":"DD23162D7DFDC59A29BB1F829CE92E552C27DBB7737C127CF4A20D3BF5C32FC315AD71E759AF2353CB5E630D5804A7E76484DC55488A85773050707372E679B7","version":"0.5.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/specialattackuser-0.5.0.jar?raw=true","requires":"0.0.1"}]}]
[{"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Ardy Iron Powerminer","description":"Automatically powermines iron","id":"ardyironpowerminer-plugin","releases":[{"date":"2020-08-13","sha512sum":"7A8467FD2A4F395728FE569AC4214F9188148C470586D8AC3A629FF8E3E21A7D06473620083F8207E9D3F2D42AF4481349F40AAA88F6C2A266E0FDC2E4B21F84","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/ardyironpowerminer-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Auto Theiver","description":"Automatically theives from npcs","id":"autotheiver-plugin","releases":[{"date":"2020-08-13","sha512sum":"A16496B37E5582C65C7B72B966CDDDCA009C1BAAB4E8846701BB6C5BFE384A5D61E9D5892665EDABE52AC46187612677E9C42E2EEE4BDFA945D4DFC716BDCD09","version":"0.5.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/autotheiver-0.5.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Cannon Reloader","description":"Automatically reload your cannon","id":"cannonreloader-plugin","releases":[{"date":"2020-08-13","sha512sum":"5F1573D3FBCFA47FA971F926F6E00B73533A98B9E0F1F2F066CD20FF8B32A60A3C1579B8C2DC9120BFB51AC25414F956AFE03F76221D8D4F4CA0B20D0BE6501C","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/cannonreloader-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Event Debugger","description":"","id":"eventdebugger-plugin","releases":[{"date":"2020-08-13","sha512sum":"C2767241D8F6108E83407179200EEE672DFE85CEC995B9B069740EF9022937E21FAB4453FCC20C22C221060492885AED6D30548B5443D5A7D133985584C0634C","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/eventdebugger-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Food Eater","description":"Automatically eats food","id":"foodeater-plugin","releases":[{"date":"2020-08-13","sha512sum":"D0DAE5719305357B7EB9A69B0F7E28BD35EF91EE1D522B01F874B6AC068597DDB458A6940893BC0EA537D6786DB4D9F1FE1A9C2C2C0F13604AD986887E4DD380","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/foodeater-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Item Combiner","description":"Automatically uses items on another item","id":"itemcombiner-plugin","releases":[{"date":"2020-08-13","sha512sum":"4424E036982413B4BEF4B7891618F8CC650649E275383D0DF2E581EBF2CAE52BFCBDF951843BF1CD014F65699EDCB9FACBFC7D1899C0BDFA4642DF273B0E42C0","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/itemcombiner-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Item User","description":"Automatically uses items on an object","id":"itemuser-plugin","releases":[{"date":"2020-08-13","sha512sum":"F2804C5F77A0FEF5CDABA4BB69854E7A77E4DF7A0A21BBA3DDEDB705C92ADCD6AA53D650082350000B55994851797CB8DBA03C1569A32F40BE3E668B1716B663","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/itemuser-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Jad Auto Prayer","description":"Auto click proper prayers against Jad","id":"jadautoprayer-plugin","releases":[{"date":"2020-08-13","sha512sum":"AEC61CB1E1141BCEA0F254913702E1D7422CA2872B67EE51624C2D32FEC8D862760E7325B1EC371117E6207BB3418A2BB53A97A91248E9B05DABB6F4ED78C652","version":"0.5.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/jadautoprayer-0.5.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Lava Crafter","description":"Lava Crafting Helper","id":"lavacrafter-plugin","releases":[{"date":"2020-08-13","sha512sum":"00E7CECD7CBB8CBE8B488833328CD921FF204A2F2D9278EC985A55A421DEEC97B902393FCA0AF52F35D4398FEB0A86A855F8E318EF2D3EEF29B2AB4BB8BD882C","version":"0.3.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/lavacrafter-0.3.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"NMZ Helper","description":"An automation utility for NMZ","id":"nmzhelper-plugin","releases":[{"date":"2020-08-13","sha512sum":"0B06041E532B81A770DA8230E09EA9C0B57C06B64AC9C6B37A3B59E06EA7CC7202170D615EB1C441EAAB4EB9CDD4E183D9C0233C5A106F1C467BA47287233B4B","version":"0.9.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/nmzhelper-0.9.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"PK Tools","description":"Arsenal of PKing Tools","id":"pktools-plugin","releases":[{"date":"2020-08-13","sha512sum":"3FB284EFBDC810B25493DBEA724FC0B53D50FD31CE7FAE57514E54530BCDD77AF3500F104E76B4363F3E0136DF3158C3D2A65806ACA410BC2422CD1A0F5C903F","version":"0.6.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/pktools-0.6.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Prayer Pot Drinker","description":"Automatically drink pray potions as needed","id":"prayerpotdrinker-plugin","releases":[{"date":"2020-08-13","sha512sum":"93E57447E0A83BF2639FDD8E80B2358195B5F0622BB079094E72A88A120C60AA3CF39EE5E4D72B4BE5BA2F335F4074201D5157DF29E4BC43903E9B6DC65759E8","version":"0.4.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/praypotdrinker-0.4.0.jar?raw=true","requires":"0.0.1"}]}, {"projectUrl":"https://discord.gg/7qrYdaC","provider":"ben93riggs","name":"Special Attack User","description":"Automatically enables special attack","id":"specialattackuser-plugin","releases":[{"date":"2020-08-13","sha512sum":"DD23162D7DFDC59A29BB1F829CE92E552C27DBB7737C127CF4A20D3BF5C32FC315AD71E759AF2353CB5E630D5804A7E76484DC55488A85773050707372E679B7","version":"0.5.0","url":"https://github.com/ben93riggs/plugins/blob/master/release/specialattackuser-0.5.0.jar?raw=true","requires":"0.0.1"}]}]
Binary file added release/pktools-0.6.0.jar
Binary file not shown.

0 comments on commit d2d10ec

Please sign in to comment.