Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Unpack(Table)

  1. #1
    Normal User
    Join Date
    Apr 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Unpack(Table)

    Hello! I made this action for safe exori san

    Code:
    local bixo = {'Nightmare', 'Destroyer', 'Crystal Spider', 'Lost Soul', 'Enlightened Of The Cult', 'Plaguesmith', 'Demon', 'Behemoth'}
    
    
    if (target.name == unpack(bixo)) and (paround(10, true) < 1) and (cancast('exori san') == true) then
    cast('exori san')
    wait(400,600)
    elseif (target.name == unpack(bixo)) and (paround(10, true) > 0) and (cancast('exori con')) then
    cast('exori con')
    wait(400,600)
    end
    But only cast exori san on 'Nightmare', i think only read the first monster (table[1]) anyone know how i can solve this?

    Thanks!

  2. #2
    Banned
    Join Date
    Jul 2012
    Location
    Santa Cruz do Sul - RS
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    0
    Try,

    PHP Code:
    local bixo = {'Nightmare''Destroyer''Crystal Spider''Lost Soul''Enlightened Of The Cult''Plaguesmith''Demon''Behemoth'}
    local descom unpack(bixo)


    if (
    target.name == descom) and (paround(10true) < 1) and (cancast('exori san') == truethen
    cast
    ('exori san')
    wait(400,600)
    elseif (
    target.name == unpack(bixo)) and (paround(10true) > 0) and (cancast('exori con')) then
    cast
    ('exori con')
    wait(400,600)
    end 

  3. #3
    Normal User
    Join Date
    Apr 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Sayildd View Post
    Try,

    PHP Code:
    local bixo = {'Nightmare''Destroyer''Crystal Spider''Lost Soul''Enlightened Of The Cult''Plaguesmith''Demon''Behemoth'}
    local descom unpack(bixo)


    if (
    target.name == descom) and (paround(10true) < 1) and (cancast('exori san') == truethen
    cast
    ('exori san')
    wait(400,600)
    elseif (
    target.name == unpack(bixo)) and (paround(10true) > 0) and (cancast('exori con')) then
    cast
    ('exori con')
    wait(400,600)
    end 
    doesn't work same error... only read the first name

  4. #4
    Banned
    Join Date
    Jul 2012
    Location
    Santa Cruz do Sul - RS
    Posts
    867
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    21
    Rep Power
    0
    Try now,

    PHP Code:
    local bixo = {'Nightmare''Destroyer''Crystal Spider''Lost Soul''Enlightened Of The Cult''Plaguesmith''Demon''Behemoth'}


    if 
    target.name == unpack(bixo) and paround(10true) < and cancast('exori san') == true then
    cast
    ('exori san')
    wait(400,600)
    elseif 
    target.name == unpack(bixo) and paround(10true) > and cancast('exori con'then
    cast
    ('exori con')
    wait(400,600)
    end 

  5. #5
    iBot User
    Join Date
    Apr 2012
    Location
    Belo Horizonte, Minas Gerais, Brasil
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    11
    Rep Power
    5
    Try

    PHP Code:
    local monsters = {'Nightmare''Destroyer''Crystal Spider''Lost Soul''Enlightened Of The Cult''Plaguesmith''Demon''Behemoth'} --Nome dos bichos pra acertar a magia
    local qtdmonsters 
    --Quantidade mínima de monstros para soltar a magia
    local spellName 
    "exori san" --Nome da magia

    --Não edite nada abaixo
    if (maround(3unpack(monsters)) >= qtdmonsters and cancast(spellName)) and paround(5) == 0 then
    cast
    (spellName)
    end 

  6. #6
    Normal User
    Join Date
    Apr 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by Sayildd View Post
    Try now,

    PHP Code:
    local bixo = {'Nightmare''Destroyer''Crystal Spider''Lost Soul''Enlightened Of The Cult''Plaguesmith''Demon''Behemoth'}


    if 
    target.name == unpack(bixo) and paround(10true) < and cancast('exori san') == true then
    cast
    ('exori san')
    wait(400,600)
    elseif 
    target.name == unpack(bixo) and paround(10true) > and cancast('exori con'then
    cast
    ('exori con')
    wait(400,600)
    end 
    Same error again you think the function unpack have some error?

  7. #7
    Normal User
    Join Date
    Apr 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by GustavoGoiaba View Post
    Try

    PHP Code:
    local monsters = {'Nightmare''Destroyer''Crystal Spider''Lost Soul''Enlightened Of The Cult''Plaguesmith''Demon''Behemoth'} --Nome dos bichos pra acertar a magia
    local qtdmonsters 
    --Quantidade mínima de monstros para soltar a magia
    local spellName 
    "exori san" --Nome da magia

    --Não edite nada abaixo
    if (maround(3unpack(monsters)) >= qtdmonsters and cancast(spellName)) and paround(5) == 0 then
    cast
    (spellName)
    end 
    I will try this hotkey, but with this action i think will spam exori san even attack one monster?

  8. #8
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Try this.
    Code:
    local bixo = {'Nightmare', 'Destroyer', 'Crystal Spider', 'Lost Soul', 'Enlightened Of The Cult', 'Plaguesmith', 'Demon', 'Behemoth'}
    
    if (target.name == table.find(bixo,target.name)) and (paround(10, true) < 1) and (cancast('exori san')) then
        cast('exori san')
        wait(400,600)
    elseif (target.name == table.find(bixo,i)) and (paround(10, true) > 0) and (cancast('exori con')) then
        cast('exori con')
        wait(400,600)
    end
    or
    Code:
    local bixo = {'Nightmare', 'Destroyer', 'Crystal Spider', 'Lost Soul', 'Enlightened Of The Cult', 'Plaguesmith', 'Demon', 'Behemoth'}
    
    for i = 0, #bixo do
        if (target.name == table.find(bixo,i)) and (paround(10, true) < 1) and (cancast('exori san')) then
            cast('exori san')
            wait(400,600)
        elseif (target.name == table.find(bixo,i)) and (paround(10, true) > 0) and (cancast('exori con')) then
            cast('exori con')
            wait(400,600)
        end 
    end
    Last edited by soder; 09-22-2012 at 09:35 AM.

  9. #9
    iBot User
    Join Date
    Apr 2012
    Location
    Belo Horizonte, Minas Gerais, Brasil
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    11
    Rep Power
    5
    Spam exori san with one monster if don't have player on screen, if u wanna more monsters for spell u can change.

  10. #10
    Normal User
    Join Date
    Apr 2012
    Posts
    47
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Quote Originally Posted by soder View Post
    Try this.
    Code:
    local bixo = {'Nightmare', 'Destroyer', 'Crystal Spider', 'Lost Soul', 'Enlightened Of The Cult', 'Plaguesmith', 'Demon', 'Behemoth'}
    
    if (target.name == table.find(bixo,target.name)) and (paround(10, true) < 1) and (cancast('exori san')) then
        cast('exori san')
        wait(400,600)
    elseif (target.name == table.find(bixo,i)) and (paround(10, true) > 0) and (cancast('exori con')) then
        cast('exori con')
        wait(400,600)
    end
    or
    Code:
    local bixo = {'Nightmare', 'Destroyer', 'Crystal Spider', 'Lost Soul', 'Enlightened Of The Cult', 'Plaguesmith', 'Demon', 'Behemoth'}
    
    for i = 0, #bixo do
        if (target.name == table.find(bixo,i)) and (paround(10, true) < 1) and (cancast('exori san')) then
            cast('exori san')
            wait(400,600)
        elseif (target.name == table.find(bixo,i)) and (paround(10, true) > 0) and (cancast('exori con')) then
            cast('exori con')
            wait(400,600)
        end 
    end
    Doesn't work too

Posting Permissions

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