XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: #9 line error

  1. #1

    Join Date
    Oct 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry #9 line error

    Hello.
    I have a little problem....



    local config = {
    GoldContainer = "Golden Backpack",
    Gold = {"Gold Coin"},
    GoldEnabled = false,

    StackableContainer = "Golden Backpack",
    Stackables = {"Platinum Coins", "", "", "", "", "", "", ""}},

    NonStackableContainer = "Golden Backpack",
    NonStackables = { "Wand Of Inferno", "", "", "", "", "", "", ""}
    }

    while true do
    for i = 0, #Container.GetIndexes() - 1 do
    local c = Container.GetFromIndex(i)
    if c:isOpen() and (c:Name():find("The") or c:Name():find("Demonic") or c:Name():find("Dead") or c:Name():find("Slain") or c:Name():find("Dissolved") or c:Name():find("Remains") or c:Name():find("Elemental")) then
    for s = 0, c:ItemCount() - 1 do
    local item = Item.GetName(c:GetItemData(s).id):titlecase()
    if config.GoldEnabled and table.contains(config.Gold, item) and Self.Cap() > 100 then
    local destCont = Container.GetByName(config.GoldContainer)
    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
    wait(150, 180)
    break
    elseif table.contains(config.Stackables, item) then
    local destCont = Container.GetByName(config.StackableContainer)
    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
    wait(150, 180)
    break
    elseif table.contains(config.NonStackables, item) then
    local destCont = Container.GetByName(config.NonStackableContainer)
    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
    wait(150, 180)
    break
    end
    end
    end
    end
    wait(50)
    end






    And i have error :


    18:53 XenoScript Error: Script: Loot Oramond.lua Line #: 9 Chunk: C:?Users?DOM?DOCUME?1?XenoBot?Scripts??LOOTOR?1.LU A Error: unexpected symbol near '=' This is an error with user-input and should not be reported

  2. #2
    Lifetime Subscriber L!p3's Avatar
    Join Date
    Dec 2011
    Location
    Brazil
    Posts
    157
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Replace
    lua code:
    Stackables = {"Platinum Coins", "", "", "", "", "", "", ""}},


    for
    lua code:
    Stackables = {"Platinum Coins", "", "", "", "", "", "", ""},


    at line 7.

  3. #3
    Lifetime Subscriber Jetta's Avatar
    Join Date
    Dec 2011
    Location
    Carlin
    Posts
    131
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cric View Post
    Hello.
    I have a little problem....



    local config = {
    GoldContainer = "Golden Backpack",
    Gold = {"Gold Coin"},
    GoldEnabled = false,

    StackableContainer = "Golden Backpack",
    Stackables = {"Platinum Coins", "", "", "", "", "", "", ""}},

    NonStackableContainer = "Golden Backpack",
    NonStackables = { "Wand Of Inferno", "", "", "", "", "", "", ""}
    }

    while true do
    for i = 0, #Container.GetIndexes() - 1 do
    local c = Container.GetFromIndex(i)
    if c:isOpen() and (c:Name():find("The") or c:Name():find("Demonic") or c:Name():find("Dead") or c:Name():find("Slain") or c:Name():find("Dissolved") or c:Name():find("Remains") or c:Name():find("Elemental")) then
    for s = 0, c:ItemCount() - 1 do
    local item = Item.GetName(c:GetItemData(s).id):titlecase()
    if config.GoldEnabled and table.contains(config.Gold, item) and Self.Cap() > 100 then
    local destCont = Container.GetByName(config.GoldContainer)
    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
    wait(150, 180)
    break
    elseif table.contains(config.Stackables, item) then
    local destCont = Container.GetByName(config.StackableContainer)
    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
    wait(150, 180)
    break
    elseif table.contains(config.NonStackables, item) then
    local destCont = Container.GetByName(config.NonStackableContainer)
    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
    wait(150, 180)
    break
    end
    end
    end
    end
    wait(50)
    end






    And i have error :


    18:53 XenoScript Error: Script: Loot Oramond.lua Line #: 9 Chunk: C:?Users?DOM?DOCUME?1?XenoBot?Scripts??LOOTOR?1.LU A Error: unexpected symbol near '=' This is an error with user-input and should not be reported
    Code:
    local config = {
    GoldContainer = "Golden Backpack",
    Gold = {"Gold Coin"},
    GoldEnabled = false,
    
    StackableContainer = "Golden Backpack",
    Stackables = {"Platinum Coins"},
    
    NonStackableContainer = "Golden Backpack",
    NonStackables = {"Wand Of Inferno"}
    }
    
    while true do
    for i = 0, #Container.GetIndexes() - 1 do
    local c = Container.GetFromIndex(i)
    if c:isOpen() and (c:Name():find("The") or c:Name():find("Demonic") or c:Name():find("Dead") or c:Name():find("Slain") or c:Name():find("Dissolved") or c:Name():find("Remains") or c:Name():find("Elemental")) then
    for s = 0, c:ItemCount() - 1 do
    local item = Item.GetName(c:GetItemData(s).id):titlecase()
    if config.GoldEnabled and table.contains(config.Gold, item) and Self.Cap() > 100 then
    local destCont = Container.GetByName(config.GoldContainer)
    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
    wait(150, 180)
    break
    elseif table.contains(config.Stackables, item) then
    local destCont = Container.GetByName(config.StackableContainer)
    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
    wait(150, 180)
    break 
    elseif table.contains(config.NonStackables, item) then
    local destCont = Container.GetByName(config.NonStackableContainer)
    c:MoveItemToContainer(s, destCont:Index(), math.min(destCont:ItemCount() + 1, destCont:ItemCapacity() - 1))
    wait(150, 180)
    break 
    end
    end
    end
    end
    wait(50)
    end

  4. #4

    Join Date
    Oct 2015
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very Thx !!!!!


Posting Permissions

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