Heroic Posted January 25, 2018 Share Posted January 25, 2018 (edited) Simple script that kills the lesser demon at the wizard's tower. Logs out when you run out of runes. DemonMager.jar Edited January 26, 2018 by Heroic Quote Link to comment Share on other sites More sharing options...
xycmode Posted January 25, 2018 Share Posted January 25, 2018 Nice Quote Link to comment Share on other sites More sharing options...
tranzystor3 Posted January 25, 2018 Share Posted January 25, 2018 22 minutes ago, Heroic said: Logs out when you run out of runes. DemonMager.jar Any runes or? Quote Link to comment Share on other sites More sharing options...
Heroic Posted January 25, 2018 Author Share Posted January 25, 2018 7 minutes ago, tranzystor3 said: Any runes or? It logs out everytime the client receives a game message that contains "You do not have enough". It does not watch for players saying that, only if it's a game message. if (chatbox.isVisible()) { List<String> messages = chatbox.getMessages(Chatbox.MessageType.GAME); for (String message : messages) { if (message.contains("You do not have enough")) { stop(); } } } Quote Link to comment Share on other sites More sharing options...
dailysmoker Posted January 25, 2018 Share Posted January 25, 2018 10 minutes ago, Heroic said: It logs out everytime the client receives a game message that contains "You do not have enough". It does not watch for players saying that, only if it's a game message. if (chatbox.isVisible()) { List<String> messages = chatbox.getMessages(Chatbox.MessageType.GAME); for (String message : messages) { if (message.contains("You do not have enough")) { stop(); } } } Solid Quote Link to comment Share on other sites More sharing options...
tranzystor3 Posted January 25, 2018 Share Posted January 25, 2018 So it's not gonna work for ranged as the message for ranged would be "There is no ammo in your quiver" ? Quote Link to comment Share on other sites More sharing options...
Juggles Posted January 25, 2018 Share Posted January 25, 2018 1 hour ago, tranzystor3 said: So it's not gonna work for ranged as the message for ranged would be "There is no ammo in your quiver" ? Nope. Just change the message in the script though if you want it to logout for range Quote Link to comment Share on other sites More sharing options...
sonda Posted January 26, 2018 Share Posted January 26, 2018 (edited) i tried to decompile it, but i either did it horribly wrong. or something isn't right. lol Can you just place a comma in the script? or do you need to place an or. if (chatbox.isVisible()) { List<String> messages = chatbox.getMessages(Chatbox.MessageType.GAME); for (String message : messages) { if (message.contains("You do not have enough" , "There is no ammo in your quiver")) { stop(); } } } if (chatbox.isVisible()) { List<String> messages = chatbox.getMessages(Chatbox.MessageType.GAME); for (String message : messages) { if (message.contains("You do not have enough")||(message.contains("There is no ammo in your quiver") ) { stop(); } } } Edited January 26, 2018 by sonda Quote Link to comment Share on other sites More sharing options...
Heroic Posted January 26, 2018 Author Share Posted January 26, 2018 11 hours ago, sonda said: i tried to decompile it, but i either did it horribly wrong. or something isn't right. lol Can you just place a comma in the script? or do you need to place an or. if (chatbox.isVisible()) { List<String> messages = chatbox.getMessages(Chatbox.MessageType.GAME); for (String message : messages) { if (message.contains("You do not have enough" , "There is no ammo in your quiver")) { stop(); } } } if (chatbox.isVisible()) { List<String> messages = chatbox.getMessages(Chatbox.MessageType.GAME); for (String message : messages) { if (message.contains("You do not have enough")||(message.contains("There is no ammo in your quiver") ) { stop(); } } } Last one should be fine, I updated the script for it to "support" ranging. Quote Link to comment Share on other sites More sharing options...
Pennystalker Posted June 13, 2018 Share Posted June 13, 2018 how do i download Quote Link to comment Share on other sites More sharing options...
blackfre223 Posted June 22, 2018 Share Posted June 22, 2018 On 6/13/2018 at 8:24 AM, Pennystalker said: how do i download There is a link in the OP that says DemonMager.jar Click that and download. Quote Link to comment Share on other sites More sharing options...
Framble Posted July 5, 2018 Share Posted July 5, 2018 Could you please add telegrab for dem rune med helms ? Quote Link to comment Share on other sites More sharing options...
Juggles Posted July 5, 2018 Share Posted July 5, 2018 1 hour ago, Framble said: Could you please add telegrab for dem rune med helms ? He hasn't logged in since February so I'll take that as a no Quote Link to comment Share on other sites More sharing options...