Results 1 to 8 of 8

Thread: Have Error in the action?

  1. #1
    Normal User idibruxo's Avatar
    Join Date
    Apr 2012
    Location
    aracaju-se
    Posts
    319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5

    Have Error in the action?

    PHP Code:
    local msgs getnewmessages("Server Log"
    local qtd msgs.count-

    for i=0,qtd 
    do 
        if 
    msgs[qtd].text:find("Server is saving game in 5 minutes. Please come back in 10 minutes.
    "

        
    then 
            settargeting
    ("off")
            
    gotolabel("Xlabel"then
            
    if not hasted then say("utani hur"
         
    end
    end 
    Is there any error in this action? Or it works perfectly?
    Last edited by idibruxo; 07-20-2012 at 05:01 PM.
    TE AJUDEI? +REP

    ~~// JANJAN SCRIPT'S //~~

  2. #2
    Normal User wicholost's Avatar
    Join Date
    Jun 2012
    Location
    Jamaica, Chile
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    well will work but have some logics errors. first, since it will check all messages then it will execute every single time the action. also will keep hasting till server save comes. this may work but you need to test it first

    PHP Code:
    local msgs getmessages("Server Log")
    local lmsginfo msgs.count-1
    local posxlabel 
    = {x,y,z// position xyz of Xlabel 
    if msgs[lmsginfo].text:find('Server is saving game in 5 minutes. Please come back in 10 minutes.'then
        settargeting
    ("off")
        if 
    posx ~= posxlabel[1] and posy ~= posxlabel[2] and posz ~= posxlabel[3] and not hasted then
            cast
    ('utani hur')
            
    gotolabel("Xlabel")
        
    end
    end 

  3. #3
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    one end is missing in the end of both actions

  4. #4
    Normal User idibruxo's Avatar
    Join Date
    Apr 2012
    Location
    aracaju-se
    Posts
    319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    This "xyz position of xlabel" I did not understand
    TE AJUDEI? +REP

    ~~// JANJAN SCRIPT'S //~~

  5. #5
    Normal User wicholost's Avatar
    Join Date
    Jun 2012
    Location
    Jamaica, Chile
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    the xlabel has some relative position x y z you need to put it on the var example:

    Stand 10249 82848 7
    local posxlabel = {10249,82848,7}

  6. #6
    Normal User idibruxo's Avatar
    Join Date
    Apr 2012
    Location
    aracaju-se
    Posts
    319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Only the first label to be? and is missing one end there but I put it kk
    TE AJUDEI? +REP

    ~~// JANJAN SCRIPT'S //~~

  7. #7
    Normal User wicholost's Avatar
    Join Date
    Jun 2012
    Location
    Jamaica, Chile
    Posts
    114
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    14
    Rep Power
    5
    what you mean with first label? also there's not end missing.

  8. #8
    Normal User idibruxo's Avatar
    Join Date
    Apr 2012
    Location
    aracaju-se
    Posts
    319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Type because I want to do a track? but only need to place the first label the way?
    TE AJUDEI? +REP

    ~~// JANJAN SCRIPT'S //~~

Posting Permissions

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