XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 12

Thread: Is there any "Stop loot item X when cap is under Y"?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Lifetime Subscriber L!p3's Avatar
    Join Date
    Dec 2011
    Location
    Brazil
    Posts
    157
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by darrickyoung View Post
    I attempted to use this script. I placed 2 xbst script names where it is supposed to go and I am getting an error that reads:


    Error:

    01:36 You lose 5 hitpoints due to an attack by a crystal spider.
    01:36 XenoScript Error:
    Script: GOLD STOP CAP.lua
    Line #: 8
    Chunk: C:?Users?Darrick?DOCUME?1?XenoBot?Scripts??GOLDST? 1.LUA
    Error: '(' expected near ')'
    This is an error with user-input and should not be reported as a bug with XenoBot.



    Script Text:

    local Mainfile = "[ED] Formorgar Crystal Spiders.xbst" -- name of the main file without .xbst in the end
    local NoGoldFile = "DROOD setup.xbst" -- name of the other file which doesn't loot gold

    ----------------------------

    local MainLoaded = true

    Module.New('Settings switcher', function(mod)
    if Self.Cap() < 100 then
    if MainLoaded then
    loadSettings(NoGoldFile, 'Looter')
    MainLoaded = false
    end
    elseif not MainLoaded then
    loadSettings(MainFile, 'Looter')
    MainLoaded = true
    end
    end


    lua code:
    local Mainfile = "[ED] Formorgar Crystal Spiders.xbst" -- name of the main file without .xbst in the end
    local NoGoldFile = "DROOD setup.xbst" -- name of the other file which doesn't loot gold

    ----------------------------

    local MainLoaded = true

    Module.New('Settings switcher', function(mod)
    if Self.Cap() < 100 then
    if MainLoaded then
    loadSettings(NoGoldFile, 'Looter')
    MainLoaded = false
    end
    elseif not MainLoaded then
    loadSettings(MainFile, 'Looter')
    MainLoaded = true
    end
    mod:Delay(500)
    end)


    You forgot to copy the last ")".
    Last edited by L!p3; 02-12-2016 at 10:57 AM.

Posting Permissions

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