Results 1 to 6 of 6

Thread: Ajuda com Action Target

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

    Ajuda com Action Target

    oque tem de errado ai?
    Eu quero que quando tiver 3 ou mais ss ou medusa elemude de approach para keep away, mas ele nao ta mudando!

    if maround(5,false,'Serpent Spawn','Medusa') == 0 then
    setsettings("Settings\\Targeting\\Monsters\\Medusa\\ListSetting s\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune')
    setsettings("Settings\\Targeting\\Monsters\\Serpent Spawn\\ListSettings\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune')
    elseif maround(5,false,'Serpent Spawn','Medusa') == 1 then
    setsettings("Settings\\Targeting\\Monsters\\Medusa\\ListSetting s\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune')
    setsettings("Settings\\Targeting\\Monsters\\Serpent Spawn\\ListSettings\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune')
    elseif maround(5,false,'Serpent Spawn','Medusa') == 2 then
    setsettings("Settings\\Targeting\\Monsters\\Medusa\\ListSetting s\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune')
    setsettings("Settings\\Targeting\\Monsters\\Serpent Spawn\\ListSettings\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune')
    elseif maround(5,false,'Serpent Spawn','Medusa') >= 3 then
    setsettings("Settings\\Targeting\\Monsters\\Medusa\\ListSetting s\\Setting0\\Stance",'Keep Away')
    setsettings("Settings\\Targeting\\Monsters\\Serpent Spawn\\ListSettings\\Setting0\\Stance",'Keep Away')
    end
    end

    Alguem me ajuda? O nome dos bixos estão certos, assim como setting0, mas ele não muda para keep away

  2. #2
    Normal User tinicius's Avatar
    Join Date
    Nov 2012
    Location
    Minas Gerais, Brazil.
    Posts
    457
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    38
    Rep Power
    5
    PHP Code:

    if maround(5,false,'Serpent Spawn','Medusa') == 0 then
    setsettings
    ("Settings\\Targeting\\Monsters\\Medusa\\ListSettings\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune')
    setsettings("Settings\\Targeting\\Monsters\\Serpent Spawn\\ListSettings\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune'
    elseif 
    maround(5,false,'Serpent Spawn','Medusa') == 1 then
    setsettings
    ("Settings\\Targeting\\Monsters\\Medusa\\ListSettings\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune')
    setsettings("Settings\\Targeting\\Monsters\\Serpent Spawn\\ListSettings\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune'
    elseif 
    maround(5,false,'Serpent Spawn','Medusa') == 2 then
    setsettings
    ("Settings\\Targeting\\Monsters\\Medusa\\ListSettings\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune')
    setsettings("Settings\\Targeting\\Monsters\\Serpent Spawn\\ListSettings\\Setting0\\ListSpell\\Spell0",'Sudden Death Rune'
    elseif 
    maround(5,false,'Serpent Spawn','Medusa') >= 3 then
    setsettings
    ("Settings\\Targeting\\Monsters\\Medusa\\ListSettings\\Setting0\\Stance",'Keep Away')
    setsettings("Settings\\Targeting\\Monsters\\Serpent Spawn\\ListSettings\\Setting0\\Stance",'Keep Away')
    end
    end 
    If i helped you rep+


    Scripter
    Selling EK 410 w/ 87 days of voucher AND 390 ED w/ 6 days of voucher BOTH PVP
    Actions That You May Need Here!

  3. #3
    iBot User
    Join Date
    Apr 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    10
    Rep Power
    5
    E qual a diferença do de cima?
    Oque estava errado?
    Aqui eu teste essa e não deu certo..
    Click image for larger version. 

Name:	action.jpg 
Views:	6 
Size:	100.1 KB 
ID:	16185Click image for larger version. 

Name:	photo1.jpg 
Views:	4 
Size:	97.0 KB 
ID:	16186Click image for larger version. 

Name:	photo2.jpg 
Views:	4 
Size:	99.6 KB 
ID:	16187

    Me Ajudem pf!

  4. #4
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Isso deve funcionar:
    Code:
    --[[ INIT START ]]--
    	local CONFIG = {
    		CREATURES = {"serpent spawn", "medusa"}
    	}
    --[[ INIT END ]]--
    
    for x = 1, #CONFIG.CREATURES do
    	if maround(5, unpack(CONFIG.CREATURES)) >= 3 then
    		setsettings('Settings\\Targeting\\Monsters\\'.. CONFIG.CREATURES[x] ..'\\ListSettings\\Setting0\\ListSpell\\Spell0', 'Sudden Death Rune')
    		setsettings('Settings\\Targeting\\Monsters\\'.. CONFIG.CREATURES[x] ..'\\ListSettings\\Setting0\\Stance', 'Keep Away')
    	else
    		setsettings('Settings\\Targeting\\Monsters\\'.. CONFIG.CREATURES[x] ..'\\ListSettings\\Setting0\\Stance', 'Approach')
    	end
    	wait(100)
    end

  5. #5
    Normal User tinicius's Avatar
    Join Date
    Nov 2012
    Location
    Minas Gerais, Brazil.
    Posts
    457
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    38
    Rep Power
    5
    Quote Originally Posted by pingoola View Post
    E qual a diferença do de cima?
    Oque estava errado?
    Aqui eu teste essa e não deu certo..
    Click image for larger version. 

Name:	action.jpg 
Views:	6 
Size:	100.1 KB 
ID:	16185Click image for larger version. 

Name:	photo1.jpg 
Views:	4 
Size:	97.0 KB 
ID:	16186Click image for larger version. 

Name:	photo2.jpg 
Views:	4 
Size:	99.6 KB 
ID:	16187

    Me Ajudem pf!

    o que tem de diferente que em "ListSettings" estava "ListSetting s"
    If i helped you rep+


    Scripter
    Selling EK 410 w/ 87 days of voucher AND 390 ED w/ 6 days of voucher BOTH PVP
    Actions That You May Need Here!

  6. #6
    iBot User
    Join Date
    Apr 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    10
    Rep Power
    5
    Então, mas eu vi na action e eles não estão separados, só aqui que saiu assim, não sei porque!

Posting Permissions

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