Jump to content

Wizard's tower lesser demon skiller


Heroic

Recommended Posts

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();
                }
            }
        }
              

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 by sonda
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 4 months later...
  • 2 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...