XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Anyone Know if have scripts for paladin that: Dont Loot if have more than "x" arrows?

  1. #1

    Join Date
    Apr 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Anyone Know if have scripts for paladin that: Dont Loot if have more than "x" arrows?

    Anyone Know if have scripts for paladin that: Dont Loot if have more than "x" arrows? (For example)
    Don't Loot if have more than x spears...

  2. #2
    Moderator shadowart's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    1,985
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    Most scripts don't have that feature (I don't know of any that do, but I might be wrong). This stand-alone lua can be configured to do what you want. In the config you'll have to put your dynamicLootList to something like this:
    lua code:

    dynamicLootList = {
    ["spear"] = {bp=1, when=function() return Self.ItemCount("spear") < 2 end},
    }

  3. #3

    Join Date
    Apr 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank You very very much!I will do a test and i will do the feedback

  4. #4

    Join Date
    Apr 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OMG, this not works!But, Thanks! +)

    dynamicLootList = {
    ["spear"] = {bp=1, when=function() return Self.ItemCount("spear") < 2 end},
    }

  5. #5

    Join Date
    Apr 2016
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is because i am using the trial version:This msg appear:
    22:32 XenoScript Error:
    Script: Dont loot more than(Pala)teste.LUA
    Line #: 2
    Chunk: C:?Users?pv?DOCUME?1?XenoBot?Scripts??DONTLO?4.LUA
    Error: table index is nil
    This is an error with user-input and should not be reported as a bug with XenoBot.

  6. #6

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Ammo = "spear"	   -- The ammo you are using
    LootBelowAmmo = 10 -- Looting below this amount of ammo
    
    Module.New('LootBelowAmmo', function(module)
    if Self.ItemCount(Ammo) < LootBelowAmmo then
    	if not Looter.IsEnabled() then
    		Looter.Start()
    	end
    else
    	if Looter.IsEnabled() then
    	Looter.Stop()
    	end
    	module:Delay(500)
    	end
    end)

  7. #7
    Moderator shadowart's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    1,985
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by pvfaria2 View Post
    It is because i am using the trial version:This msg appear:
    22:32 XenoScript Error:
    Script: Dont loot more than(Pala)teste.LUA
    Line #: 2
    Chunk: C:?Users?pv?DOCUME?1?XenoBot?Scripts??DONTLO?4.LUA
    Error: table index is nil
    This is an error with user-input and should not be reported as a bug with XenoBot.
    You edited the file incorrectly. Post your config and I'll fix it up for you. Or tell me the name of the xbst you want to use it with, which ammo you want to use and what threshold you want for it.

    Quote Originally Posted by yompa93 View Post
    Code:
    Ammo = "spear"	   -- The ammo you are using
    LootBelowAmmo = 10 -- Looting below this amount of ammo
    
    Module.New('LootBelowAmmo', function(module)
    if Self.ItemCount(Ammo) < LootBelowAmmo then
    	if not Looter.IsEnabled() then
    		Looter.Start()
    	end
    else
    	if Looter.IsEnabled() then
    	Looter.Stop()
    	end
    	module:Delay(500)
    	end
    end)
    That is not what he's asking for.

  8. #8

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by shadowart View Post
    You edited the file incorrectly. Post your config and I'll fix it up for you. Or tell me the name of the xbst you want to use it with, which ammo you want to use and what threshold you want for it.


    That is not what he's asking for.
    so you're saying he doesnt want to loot arrows when above x arrows? All yours then

  9. #9
    Moderator shadowart's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    1,985
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    There's a difference between not looting spears when you have too many spears, and not looting anything at all when you have too many spears.

  10. #10

    Join Date
    Nov 2014
    Location
    Sundsvall, Sweden
    Posts
    174
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by shadowart View Post
    There's a difference between not looting spears when you have too many spears, and not looting anything at all when you have too many spears.
    I know, and because it's over my capabilities, he's all yours. I simply misunderstood him.

Posting Permissions

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