Results 1 to 3 of 3

Thread: Script part doesn't work for some reason..

  1. #1
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default Script part doesn't work for some reason..

    *removed*

    Only running KickedFailSafe I get this result
    Simba Code:
    My position is  x: 39827 y: 3059
    We are walking to the Wizards at the west side
    We have been kicked
    We have been kicked
    We have been kicked

    It does recognize the text but it doesn't do anything.. what is the problem?

    EDIT: Fixed it, forgot to convert the waiting time into minutes.. it was just waiting 1-10 milli seconds >.< Parsed everything I guess.
    Last edited by J J; 05-14-2012 at 08:39 AM.

    Script source code available here: Github

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Check your Repeat Loop.. I do not see the WaitTime Variable Declared anywhere so if it's 0 then your loop gets parsed ones and program terminates the loop. Continues to repeat all the checking over and over.
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Check your Repeat Loop.. I do not see the WaitTime Variable Declared anywhere so if it's 0 then your loop gets parsed ones and program terminates the loop. Continues to repeat all the checking over and over.
    You mean the WaitTime?
    Simba Code:
    WaitTime := StrToInt(GetNumbers(WaitTimeString));
    U is declared on top of the script but it is indeed not declared in any of these procedures. There is actually no longer a use that it is declared on top so I'll declare U in the KickedFailsafe procedure.

    The WaitTime is also declared on top, but that is because I use it in another procedure. WaitTime does only get declared if it detects the text that means the player has been kicked. And it only waits until U > WaitTime if it has been kicked. Weird, well I'll declare the U in a procedure.

    Any other tips? Ideas?


    EDIT: Fixed it.. forgot to do WaitTime*60000 so it was just waiting 1-10 milli seconds every time which got everything parsed.

    Simba Code:
    My position is  x: 39835 y: 3071
    We are walking to the Wizards at the east side
    We have joined a team
    We have joined a team
    We have joined a team
    We haven`t been kicked! Succesful mainloop.

    My position is  x: 39835 y: 3063
    We are walking to the Wizards at the east side
    We have been kicked
    We have been kicked

    My position is  x: 39863 y: 3047
    We are walking to the Wizards at the east side
    The teams are full
    The teams are full
    The teams are full
    The teams are full
    The teams are full
    The teams are full
    The teams are full
    The teams are full
    The teams are full
    The teams are full
    We have joined a team
    We have joined a team
    We haven`t been kicked! Succesful mainloop.

    My position is  x: 39831 y: 3063
    We are walking to the Wizards at the east side
    We have been kicked
    We have been kicked
    We have been kicked
    We have been kicked..
    We have been kicked
    We have been kicked
    We have been kicked
    We have been kicked, waiting until we can start again.
    Y o u l e f t t h e l a s tn egwa mg ae mb ee ff oo rr e 9 i tmei nn du et ed s. . Y o u c a n . t j o i n a

    We have been kicked etc. is there multiple times because of some loops but it does wait until the waiting time for kicked is over!
    Last edited by J J; 05-14-2012 at 08:40 AM.

    Script source code available here: Github

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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