Results 1 to 3 of 3

Thread: wait_until (person) is in the room

  1. #1

    Default wait_until (person) is in the room

    I need to wait for someone to show up before moving on. Also is there a way to wait until 2 or more specified people are in your group?

    Thanks

  2. #2

    Default

    Quote Originally Posted by Intel View Post
    I need to wait for someone to show up before moving on.
    wait_until { GameObj.pcs.find { |pc| pc.name =~ /SexFiendMcSexterson/

  3. #3

    Default

    Quote Originally Posted by Intel View Post
    Also is there a way to wait until 2 or more specified people are in your group?
    Code:
    group = Array.new
    
    while line = get
    	if line =~ /(.*) joins your group./ or line =~ /You clasp (.*)\'s hand/ or line =~ /You add (.*) to your group./
    		group.push($1) unless group.include?($1)
    		if group.include?("PERSON A") and group.include?("PERSON B")
    			echo "DO STUFF!"
    		end
    	end
    end

Similar Threads

  1. wait_until (person) is in the room
    By Intel in forum Miscellaneous Scripts
    Replies: 2
    Last Post: 07-05-2014, 11:14 PM
  2. How to use wait_until?
    By Intel in forum The Lich Project
    Replies: 11
    Last Post: 03-08-2013, 06:21 AM
  3. Replies: 2
    Last Post: 11-26-2012, 12:28 AM
  4. Replies: 3
    Last Post: 08-15-2012, 07:52 PM
  5. Fuaru's Room (Xolean's Shop, Room 27, Wood building in Landing)
    By RevenantG in forum Flat Priced Sales
    Replies: 0
    Last Post: 11-30-2009, 04:09 AM

Posting Permissions

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