XenoBot Forums - Powered by vBulletin

User Tag List

Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

Thread: [Looter] Move Corpses

  1. #11
    Senior Member gazgaz's Avatar
    Join Date
    Jun 2013
    Posts
    518
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Spectrus View Post
    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
    dim skills ouch ;p
    mumble support +
    xenobot.mumble.com
    5846

  2. #12
    Senior Member kimpan1337's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    675
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gazgaz View Post
    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
    But if ur hunting danger monsters u know then u cant have loot first since u maybe shoot avas on hff and then they are 4 then u run and loot then they will die ;D or behemoths

  3. #13
    Senior Member gazgaz's Avatar
    Join Date
    Jun 2013
    Posts
    518
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by kimpan1337 View Post
    But if ur hunting danger monsters u know then u cant have loot first since u maybe shoot avas on hff and then they are 4 then u run and loot then they will die ;D or behemoths
    yea thats true but it was just one option
    mumble support +
    xenobot.mumble.com
    5846

  4. #14
    Senior Member kimpan1337's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    675
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gazgaz View Post
    yea thats true but it was just one option
    Yeah know ^^

  5. #15
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Spectrus View Post
    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.

    As for the above post, pffffffffffffffffffffffffffffffffffffffffffff usuck
    Typical sheepish response. This was posted in the suggestions section, not in the request section. How about providing what the customers pay for? Just because I can write a script does not mean I should always have to. There are certain things like these that should simply be built into the bot. Not to mention that your script walks around using browse field every time it loots a creature. Basically saying to CIP..... "Hey LOOK AT ME! I'm a BOTTER!"

  6. #16
    Administrator
    Join Date
    Dec 2010
    Posts
    2,565
    Mentioned
    228 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Eion View Post
    Typical sheepish response.
    I don't understand what you're trying to say.
    Code:
    sheepˇish
    adjective
    1. (of a person or expression) showing embarrassment from shame or a lack of self-confidence.


    Quote Originally Posted by Eion View Post
    This was posted in the suggestions section, not in the request section. How about providing what the customers pay for?
    You're right. I, having no more influence on the development of the bot, should not provide temporary solutions to people's requests while they wait to hear from the bot developer if he will add their feature.


    Quote Originally Posted by Eion View Post
    Just because I can write a script does not mean I should always have to. There are certain things like these that should simply be built into the bot.
    You're right, every other bot has moved corpses to loot creatures. Why does Xenobot have to be different? Can't believe this hasn't been added yet.

    Seriously? I feel like you just post stupid inane shit to make me educate you. If you want to learn something, just ask nicely.


    Quote Originally Posted by Eion View Post
    Not to mention that your script walks around using browse field every time it loots a creature.
    Working as intended then, exactly what they were asking for.


    Quote Originally Posted by Eion View Post
    Basically saying to CIP..... "Hey LOOK AT ME! I'm a BOTTER!"
    This is the annoying bit. You don't know shit about how CIP's automatic detection tool works. No one does. You may have a theory, but don't criticize others just because they go against your theory of how they are detecting bots. Here's a script for you to run on all your accounts:

    Code:
    local knowsHowDetectionWorks = false
    
    repeat
       Self.Say("Hey LOOK AT ME! I'm a BOTTER!")
    until knowsHowDetectionWorks
    Bye!

  7. #17
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    You broke down my entire post? You take everything far to personally and I'm definitely not going to reward you by continuing this internet fight.

    Time for me to work now. Enjoy your internet power. lmao....

  8. #18
    Senior Member RoxZin xD's Avatar
    Join Date
    Feb 2012
    Location
    Rio de Janeiro
    Posts
    709
    Mentioned
    16 Post(s)
    Tagged
    1 Thread(s)
    To be honest @Spectrus, original post was when browse field didn't exist, so it made sense to "move the corpse" to loot another below. Now, we got browse field and I wonder myself why XenoBot doesn't use it yet. You know, the newest competitor (which works faster than XenoBot while simulating mouse/keyboard, LOL) does that. The main problem of this community is that you guys always have to make scripts to something which should be in-built.

  9. #19
    callumbagshaw's Avatar
    Join Date
    Apr 2013
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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)


    Not going to try this Spectrus, but the code looks good to me.
    Gotta remember there's a lot of people who are scared of using scripts like this, due to a community which is unfortunately not filled with members like yourself, people tend not to trust scripts for important stuff like looting.
    If DarkstaR can convert this to CPP and add it to the bot would be naiiiiiiice
    Cal.

Posting Permissions

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