XenoBot Forums - Powered by vBulletin

User Tag List

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

Thread: [Looter] Move Corpses

  1. #1
    leleog's Avatar
    Join Date
    Dec 2011
    Posts
    58
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Looter] Move Corpses

    Well, as far as i've seen on XenoBot (bought yesterday), if two creatures fall in the same sqm, it will only loot the first one.. would be great if the bot move corpses to make sure every creature is looted in a situation like that..

  2. #2
    LukeFisher's Avatar
    Join Date
    Jan 2012
    Posts
    94
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yeah an option to loot immediately after kill would be cool too + ability to choose a looting mode

  3. #3

    Join Date
    Jan 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +1 good idea!

  4. #4
    Lifetime Subscriber Dizix's Avatar
    Join Date
    Dec 2011
    Location
    Sweden
    Posts
    806
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by LukeFisher View Post
    yeah an option to loot immediately after kill would be cool too + ability to choose a looting mode
    +1 on this.

    This bot really needs different looting options and it depends alot which vocation you are, where you're hunting etc.

  5. #5

    Join Date
    Sep 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    anyone found a script for this yet?... i've lost a lot of profit because of this. :S

  6. #6
    Senior Member gazgaz's Avatar
    Join Date
    Jun 2013
    Posts
    518
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    there is no scrip for this and there most likely wont be if you want it to loot befor hand right click in the looter and channge it from last to first and it will loot after it kills the monster
    mumble support +
    xenobot.mumble.com
    5846

  7. #7

    Join Date
    Jul 2013
    Posts
    23
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Would be nice if the looter use "Browse Field" option on the Tibia client...

  8. #8
    Banned
    Join Date
    Sep 2013
    Location
    Poland
    Posts
    333
    Mentioned
    21 Post(s)
    Tagged
    0 Thread(s)
    Function
    Code:
    Self.BrowseField()
    ?

  9. #9
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    First the bot needs the ability to read the 8 or so visible items on a square. I know it must be possible to read, because you can see 8 or so items before they start disappearing. Also there should be a way to tell if something is covering the base ground tile. Once you add this ability to the bot you could easily implement this to the looter so that the bot would loot creatures that fall on each other with browse field. It could also loot creature that die on ladder spots, and also creatures that are underneath fire fields etc... All other creatures it could loot the normal way. The reason to do it this way is that it would be strange to loot every single creature using browse field and also inhuman. We should only use browse field where it is needed.

    This would help with a lot of missed loots.
    @DarkstaR

  10. #10
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    Or, y'know, you could write a script...

    Here's a browse field looter. Really basic, not commented, not going to explain how to set it up. Get inspired.

    Code:
    local lootList = {
    	[1] = {3031}
    }
    
    local target, pos;
    
    LootMessageProxy.OnReceive('looting', function(p, m)
    	if (pos) then
    		--Cavebot.Stop()
    		Self.BrowseField(pos.x, pos.y, pos.z)
    		wait(300, 500)
    		local cont = Container.GetLast()
    		for spot, item in cont:iItems() do
    			if (Item.isCorpse(item.id)) then
    				cont:UseItem(spot, true)
    				wait(300, 500)
    				cont = Container.GetLast()
    				local offset = 0
    				for i = 0, cont:ItemCount() - 1 do
    					local itm = cont:GetItemData(i - offset)
    					for bp, items in pairs(lootList) do
    						if table.contains(items, itm.id) then
    							cont:MoveItemToContainer(i - offset, Container(bp), 0)
    							wait(300, 500)
    							offset = offset - 1
    							break
    						end
    					end
    				end
    				break
    			end
    		end
    		--Cavebot.Start()
    	end
    end)
    
    Module.New('postracking', function()
    	if Self.TargetID() > 0 then
    		target = Creature(Self.TargetID())
    		if (target:isAlive() and target:isOnScreen()) then
    			pos = target:Position()
    			return
    		end
    	end
    	target = nil
    end)
    As for the above post, pffffffffffffffffffffffffffffffffffffffffffff usuck

Posting Permissions

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