Results 1 to 7 of 7

Thread: Action help- Safe looting Change

  1. #1
    Premium User
    Join Date
    Feb 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5

    Cool Action help- Safe looting Change

    Hello i'm trying to make a safe loot changer according to monster's on screen i've made this but it still not working:
    PHP Code:
    local minMonsterCount 4
    local maxMonsterCount 
    5
    local nameMonsters 
    = {"Dragon Lord""Dragon""Demodras"}

    if ((
    maround(10unpack(nameMonsters))  <= minMonsterCount)) then
        setsettings
    ("Settings\\Cavebot\\Settings\\Priority","Looting"
    end

    if ((maround(10unpack(nameMonsters))  >= maxMonsterCount)) then
        setsettings
    ("Settings\\Cavebot\\Settings\\Priority","Targeting"
        
    setsettings("Settings\\Looting\\Style","After all dead"
        
    end
    end 
    can someone help me?
    Last edited by italotkh; 03-28-2013 at 03:08 PM.

  2. #2
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    maybe because u forgot to add ")" at the end on setsettings?? Also there is one "end" too much
    why u ppl don't read Debug window??

  3. #3
    Normal User Banantwist's Avatar
    Join Date
    Jun 2012
    Location
    Norway
    Posts
    260
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    19
    Rep Power
    5
    Quote Originally Posted by RafiXWPT View Post
    maybe because u forgot to add ")" at the end on setsettings?? Also there is one "end" too much
    why u ppl don't read Debug window??
    How can I see this window?

  4. #4
    iBot User
    Join Date
    Jun 2012
    Posts
    517
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    132
    Rep Power
    7
    Quote Originally Posted by Banantwist View Post
    How can I see this window?
    Main Window Help>Debug

  5. #5
    iBot User
    Join Date
    Jun 2012
    Posts
    517
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    132
    Rep Power
    7
    Quote Originally Posted by italotkh View Post
    Hello i'm trying to make a safe loot changer according to monster's on screen i've made this but it still not working:
    PHP Code:
    local minMonsterCount 4
    local maxMonsterCount 
    5
    local nameMonsters 
    = {"Dragon Lord""Dragon""Demodras"}

    if ((
    maround(10unpack(nameMonsters))  <= minMonsterCount)) then
        setsettings
    ("Settings\\Cavebot\\Settings\\Priority","Looting"
    end

    if ((maround(10unpack(nameMonsters))  >= maxMonsterCount)) then
        setsettings
    ("Settings\\Cavebot\\Settings\\Priority","Targeting"
        
    setsettings("Settings\\Looting\\Style","After all dead"
        
    end
    end 
    can someone help me?
    PHP Code:
    local minMonsterCount 4
    local maxMonsterCount 
    5
    local nameMonsters 
    = {"Dragon Lord""Dragon""Demodras"}

    if ((
    maround(10unpack(nameMonsters))  <= minMonsterCount)) then
        
    while getsettings("Settings\\Cavebot\\Settings\\Priority") ~= Looting do
            
    setsettings("Settings\\Cavebot\\Settings\\Priority","Looting")
        
    end
    elseif ((maround(10unpack(nameMonsters))  >= maxMonsterCount)) then
        
    while getsettings("Settings\\Cavebot\\Settings\\Priority") ~= Targeting do
            
    setsettings("Settings\\Cavebot\\Settings\\Priority","Targeting")
        
    end
        setsettings
    ("Settings\\Looting\\Style","After all dead")
    end 

  6. #6
    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
    local minMonsterCount = 4
    local maxMonsterCount = 5
    local nameMonsters = {"Dragon Lord", "Dragon", "Demodras"}

    if maround(10, unpack(nameMonsters)) <= minMonsterCount then
    setsettings("Settings\\Cavebot\\Settings\\Priority","Looting")
    wait(100)
    elseif (maround(10, unpack(nameMonsters)) >= maxMonsterCount) then
    setsettings("Settings\\Cavebot\\Settings\\Priority","Targeting")
    setsettings("Settings\\Looting\\Style","After all dead")
    wait(100)
    end

  7. #7
    Premium User
    Join Date
    Feb 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    Ty garkstal13 working fine
    rep+ for you

Tags for this Thread

Posting Permissions

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