Results 1 to 8 of 8

Thread: Need help in gold looting action

  1. #1
    iBot User
    Join Date
    Oct 2012
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    13
    Rep Power
    5

    Need help in gold looting action

    Hello I would like to set if cap higher than 100 loot gold to bp 02 and when lower than 100 set off. I used to use this action in past but it doesnt work anymore. Can somebody help me?

    if (cap <= 100) then
    setsettings("Settings\\Looting\\gold coin\\Destination", "off")
    else
    setsettings("Settings\\Looting\\gold coin\\Destination", "02")
    end

  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
    insted of "off" put there, 999.
    Also use [luas][/.luas] tags next time
    Lua Code:
    if (cap <= 100) then
    setsettings("Settings\\Looting\\gold coin\\Destination", "999")
    else
    setsettings("Settings\\Looting\\gold coin\\Destination", "02")
    end

  3. #3
    iBot User
    Join Date
    Oct 2012
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    13
    Rep Power
    5
    Rafix thanks but it still doestn work ;/ as I said this old action was working so idk what happened now

  4. #4
    iBot User
    Join Date
    Aug 2012
    Posts
    805
    Mentioned
    18 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    38 Post(s)
    Reputation
    180
    Rep Power
    7
    debug log empty?

  5. #5
    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
    Quote Originally Posted by kurwamac69 View Post
    Rafix thanks but it still doestn work ;/ as I said this old action was working so idk what happened now
    Because there is wrong typo.
    This one is good:
    Lua Code:
    if (cap <= 100) then
    setsettings("Settings\\Looting\\List\\Gold Coin\\Destination", "999")
    else
    setsettings("Settings\\Looting\\List\\Gold Coin\\Destination", "2")
    end

  6. #6
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    "Off" would work just fine, anyway.

    "Off" is not a backpack, so it would effectively not loot items this way.

    Your options are...
    A non-existant bag name. Eg "Off"
    A non-existant bad ID. Eg 990, nothin this shouldn't be a strong, hence the absence of quotation marks
    "ground". Setting destination to the ground will just drop any items to the ground incase you want it later or whatever

  7. #7
    iBot User
    Join Date
    Oct 2012
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    13
    Rep Power
    5
    Now works, thanks

  8. #8
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    I'm not sure if you're name is offensive or not... lol

Posting Permissions

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