Results 1 to 8 of 8

Thread: Please help!

  1. #1

    Default Please help!

    Could someone tell me why this isn't working...it used to work.

    def get_up
    if GameObj.pcs.status.include.find{|down| down.status =~ /sitting|kneeling|prone/ && down.status != /webbed|calmed|stunned/ && down.noun =~ /Glaves|Ossirian|Omind/ }
    down = GameObj.pcs.status.include.find{|down| down.status =~ /sitting|kneeling|prone/ && down.status != /webbed|calmed|stunned/ && down.noun =~ /Glaves|Ossirian|Omind/ }
    fput "pull ##{down.id}"
    end
    end

    loop {
    pause 1
    get_up
    }


    --- Lich: getup active.
    --- Lich: error: undefined method `status' for #<Array:0x0000000013177c18>
    getup:7:in `get_up'
    getup:15:in `block in _script'
    --- Lich: getup has exited.


    If someone could help me out that would be amazing!
    Last edited by Glaves; 06-30-2019 at 04:19 AM.

  2. #2

    Default


  3. #3

    Default

    Code:
    def get_up
    	GameObj.pcs.each { |down| 
    		if down.status =~ /sitting|kneeling|prone/ && down.status !~ /webbed|calmed|stunned/i && down.noun =~ /Glaves|Ossirian|Omind/
    			fput "pull ##{down.id}"
    		end
    	}
    end
    
    loop {
    	pause 1
    	get_up
    }

  4. #4

    Default

    Thank you!

  5. #5

    Default

    Quote Originally Posted by Tgo01 View Post
    Code:
    def get_up
    	GameObj.pcs.each { |down| 
    		if down.status =~ /sitting|kneeling|prone/ && down.status !~ /webbed|calmed|stunned/i && down.noun =~ /Glaves|Ossirian|Omind/
    			fput "pull ##{down.id}"
    		end
    	}
    end
    
    loop {
    	pause 1
    	get_up
    }
    Did something change in the last couple years that made my original code not work?

  6. #6

    Default

    Quote Originally Posted by Glaves View Post
    Did something change in the last couple years that made my original code not work?
    Not to my knowledge.

  7. #7

    Default

    Quote Originally Posted by Glaves View Post
    Did something change in the last couple years that made my original code not work?
    www.twitch.tv/3piecesofbread
    Quote Originally Posted by Back
    I am a retard. I'm disabled. I'm poor. I'm black. I'm gay. I'm transgender. I'm a woman.



    Quote Originally Posted by Back View Post
    No matter how good the economy is its not worth having with a divisive snowflake crook in the White House.

  8. #8

    Default

    Quote Originally Posted by Methais View Post
    Usually it's because you forgot a ',", or ]
    adred#0111 (discord)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •