+ Reply to Thread
Results 1 to 6 of 6

Thread: Chat Controlled String Stargate Dialer

  1. #1
    Wire Noob Phillypos's Avatar
    Join Date
    Jul 2008
    Posts
    27

    Default Chat Controlled String Stargate Dialer

    *Update*
    Code:
    @name Dialer 
    @inputs 
    @outputs Dial:string Close Iris
    @persist
    
    runOnChat(1)
    O=owner()
    LS=O:lastSaid()
    
    if(LS:find("/Dial")) {Dial=LS:sub(7,12)}        
            if(LS:find("/Iris")) {Iris=1} else{Iris=0}
            if(LS:find("/Close")) {Close=1} else{Close=0}
    if (Dial:length() < 6) {Dial="" print("Sorry, too short Address")}
    The problem is that if "Iris" is 1 and I type /Close (Same if I would have typed /Dial ******), close Activates, but the Iris ouput goes to zero. Same if "Close" is one and I type either /Iris or /Dial ******
    Last edited by Phillypos; 04-25-2009 at 03:47 PM.

  2. #2
    Wire Noob Phillypos's Avatar
    Join Date
    Jul 2008
    Posts
    27

    Default Re: Chat Controlled String Stargate Dialer

    Old problem fixed, new problem has appeared -> I updated the first post with the new problem.

    *EDIT*
    Seriously guys, I need some help with this.
    Last edited by Phillypos; 04-25-2009 at 04:58 PM.

  3. #3
    billywitchdoctor.com Whosdr's Avatar
    Join Date
    Dec 2008
    Posts
    2,300

    Default Re: Chat Controlled String Stargate Dialer

    Didnt think stargate took strings...
    I have one wich dials, disables and closes and thats about it. Could probebly be simplified but it works.

  4. #4
    billywitchdoctor.com Whosdr's Avatar
    Join Date
    Dec 2008
    Posts
    2,300

    Default Re: Chat Controlled String Stargate Dialer

    hmm, I know its simple but try using elseif?

  5. #5
    Wire Noob Phillypos's Avatar
    Join Date
    Jul 2008
    Posts
    27

    Default Re: Chat Controlled String Stargate Dialer

    Quote Originally Posted by Whosdr View Post
    Didnt think stargate took strings...
    I have one wich dials, disables and closes and thats about it. Could probebly be simplified but it works.
    String support will be added in Rev. 45, but for now it is only avaible on aVoN's server.

  6. #6
    billywitchdoctor.com Whosdr's Avatar
    Join Date
    Dec 2008
    Posts
    2,300

    Default Re: Chat Controlled String Stargate Dialer

    Try elseif anyway.

+ Reply to Thread

Similar Threads

  1. Stargate Spammer/Auto Dialer
    By JonLeonTM in forum Finished contraptions
    Replies: 14
    Last Post: 08-13-2009, 11:19 AM
  2. Stargate chat dialer - help needed with veraible recognision.
    By Whosdr in forum Expression 2 Discussion & Help
    Replies: 14
    Last Post: 03-24-2009, 01:37 PM
  3. Gate Dialer - Need help
    By Aus_Karlos in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 10-26-2007, 10:27 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots