XenoBot Forums - Powered by vBulletin

User Tag List

Page 1 of 7 123 ... LastLast
Results 1 to 10 of 66

Thread: [Update] XenoBot v2.2.0 [Alarms | Refiller | Ammo Reload]

  1. #1
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)

    [Update] XenoBot v2.2.0 [Alarms | Refiller | Ammo Reload]

    This update fixes many bugs and adds many features. Among the new functionality you will find is an Alarm system and a system to refill your ammunition for you. Furthermore, the Scripter now exports functionality for making scripts that can deposit looted items to depot and restock potions and other supplies strait from depot or any other containers where you store such supplies. Lastly, you can now see information about your equipment, inventory and use/move items as you please.

    Changelog
    Code:
    v2.2.0
    Fixed a bug which didn't show damage done to other players on Most Dealt Damage HUD item
    Fixed Eat Food to wait until the character is still before eating food
    Fixed Anti-Idle to wait until the character is still before spinning
    Fixed a bug which caused the Scripter to kill the wrong scripts and, very rarely, crash upon killing a script
    Fixed Walker Labels to delay longer before moving to the next waypoint iteration to allow scripts more time to execute
    Fixed itemID boxes to draw stackable items with 100 count instead of 1, since it looks nicer
    Added "Equipment Manager" to "Support" which currently supports functionality for refilling ammo to hand and arrow slot
    Added "Alarms" dialog window which will allow the user to enable alerts which can warm them when certain actions take place. Current Alarms:
            Disconnected
            Damaged
            Low Health
            Private Message
            Creature Detected
            Player Attack
            Player Detected
        Player Detected extends functionality to logout upon detection. Furthermore, alarms which are triggered by other players will ignore partied players if enabled by the user.
    Added new functionality to the Scripter. The functions are as follows:
        Global functions:
            wait(min, max)
            wait(time)
            setWalkerEnabled(enabled)
            setLooterEnabled(enabled)
            setTargetingEnabled(enabled)
        Self class functions:
            Self.UseItem(id)
            Self.UseItemFromGround(x, y, z) --Returns the id of the item it found and used
            Self.UseItemWithGround(id, x, y, z)
            Self.UseItemWithCreature(itemid, creatureid)
            Self.UseItemFromMyPosition() --Returns the id of the item it found and used
            Self.UseItemWithMyPosition(id)
            Self.UseItemWithMe(id)
            Self.UseItemWithTarget(id)
            Self.UseItemWithFollow(id)
            Self.Head()
            Self.Armor()
            Self.Legs()
            Self.Feet()
            Self.Amulet()
            Self.Weapon()
            Self.Ring()
            Self.Backpack()
            Self.Shield()
            Self.Ammo()
        Container class functions
            Container.GetFirst()
            Container.GetByName(name)
            Container.GetFromIndex(index)
            Container:GetNext()
            Container:Index()
            Container:ID()
            Container:Name()
            Container:ItemCount()
            Container:ItemCapacity()
            Container:isOpen()
            Container:GetItemData(spot)
            Container:UseItem(spot)
            Container:UseItemWithGround(spot, x, y, z)
            Container:UseItemWithCreature(spot, id)
            Container:MoveItemToEquipment(spot, slotName)
            Container:MoveItemToGround(spot, x, y, z)
            Container:MoveItemToContainer(spotFrom, containerTo, spotTo)
    Sadly, though, I have still not managed to locate and fix the bug which is causing the client to crash upon inject. For this reason, and I cannot stress this enough, only inject in safe places - preferably when logged out. Below, you will find some scripting examples using some of the new functions:


    LoadStars.lua - Loads Assassin Stars from Depot to weapon hand
    PHP Code:
    local depot Container.GetByName("Depot Chest")

    for 
    spot 0depot:ItemCount() do
        
    local item depot:GetItemData(spot)
        if (
    item.id == 7368then --assassin stars
            depot
    :MoveItemToEquipment(spot"weapon")
            break
        
    end
    end 
    DropItems.lua - Drops all Gold to the floor
    PHP Code:
    function dropItem(id)
        
    local cont Container.GetFirst()

        while (
    cont:isOpen()) do
            for 
    spot 0cont:ItemCount() do
                
    local item cont:GetItemData(spot)
                if (
    item.id == idthen
                    cont
    :MoveItemToGround(spotSelf.Position().xSelf.Position().ySelf.Position().z)
                    return 
    true
                end
            end

            cont 
    cont:GetNext()
        
    end
        
        
    return false
    end


    while (true) do
        
    dropItem(3031)
        
    wait(7001200)
    end 
    DepotRestock.lua - When the Walker hits the label "AtDepot," opens Depot and moves all Assassin Stars to the first open Dragon Backpack
    PHP Code:
    function onWalkerSelectLabel(labelName)
        if (
    labelName == "AtDepot"then
            setWalkerEnabled
    (false)
            
    setLooterEnabled(false)
            
    setTargetingEnabled(false)
            
            
    Self.UseItemFromGround(Self.Position().xSelf.Position().1Self.Position().z) --open the Locker (north of us)
            
    wait(1500) --Wait for 1.5 seconds
            
            local locker 
    Container.GetByName("Locker")
            
            if (
    locker:isOpen() == falsethen
                
    --handle the error~
            else
                
    locker:UseItem(0) --open the Depot Chest (first item in the container)
                
    wait(1500) --Wait for 1.5 seconds
                local depot 
    Container.GetByName("Depot Chest")
                
                
                if (
    depot:isOpen() == falsethen
                    
    --handle the error~
                else
                    
    local backpack Container.GetByName("Dragon Backpack") --should be open by the userour ammo backpack
                    
    if (backpack:isOpen() == falsethen
                        
    --handle the error
                    
    else
                        while (
    depot:CountItemsOfID(7368) > 0) do
                            for 
    spot 0depot:ItemCount() do
                                
    local item depot:GetItemData(spot)
                                if (
    item.id == 7368then --assassin stars
                                    depot
    :MoveItemToContainer(spotbackpack:Index(), 0)
                                    
    wait(5001500)
                                    break
                                
    end
                            end
                        end
                    end
                end
            end
            
            setWalkerEnabled
    (true)
            
    setLooterEnabled(true)
            
    setTargetingEnabled(true)
            
    gotoLabel("GoToHunt")
        
    end
    end 

    For download and operation instructions, refer back to this thread:
    http://forums.xenobot.net/showthread.php?19

  2. #2
    Lifetime Subscriber
    Join Date
    Dec 2011
    Posts
    994
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    awesome. great item functions now we can start making some real scripts.

  3. #3
    Mega's Avatar
    Join Date
    Dec 2011
    Location
    Sweden
    Posts
    400
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    YOU OWN DARK

  4. #4
    Lifetime Subscriber Pixels's Avatar
    Join Date
    Dec 2011
    Location
    The Neterlands
    Posts
    970
    Mentioned
    122 Post(s)
    Tagged
    2 Thread(s)
    Nice to see this long ChangeLog ^^ Good Job!

  5. #5
    Lifetime Subscriber Hendy's Avatar
    Join Date
    Jan 2012
    Location
    Northern Ireland
    Posts
    1,593
    Mentioned
    7 Post(s)
    Tagged
    1 Thread(s)
    As always good job!!

  6. #6

    Join Date
    Feb 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how can I put those codes of the alarm and those things? or I just have to download again the bot?
    Im new in this :S

  7. #7
    Lifetime Subscriber MUHFUGGAS's Avatar
    Join Date
    Dec 2011
    Location
    Sweden
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Really nice, good work!

  8. #8
    Bashy's Avatar
    Join Date
    Jan 2012
    Location
    London, England.
    Posts
    170
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I have been waiting for so long! I can finally skill my Knight without any fear. I could seriously make love to you right now.

  9. #9
    Hawkeye's Avatar
    Join Date
    Dec 2011
    Posts
    236
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, you added a lot of new functions. Good job Nick !


    Would you like to earn some cash for scripts ? Click the link below

  10. #10
    Lolbroek's Avatar
    Join Date
    Dec 2011
    Location
    Belguim
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    DepotRestock.lua - When the Walker hits the label "AtDepot," opens Depot and moves all Assassin Stars to the first open Dragon Backpack
    PHP Code:
    function onWalkerSelectLabel(labelName)
        if (
    labelName == "AtDepot"then
            setWalkerEnabled
    (false)
            
    setLooterEnabled(false)
            
    setTargetingEnabled(false)
            
            
    Self.UseItemFromGround(Self.Position().xSelf.Position().1Self.Position().z) --open the Locker (north of us)
            
    wait(1500) --Wait for 1.5 seconds
            
            local locker 
    Container.GetByName("Locker")
            
            if (
    locker:isOpen() == falsethen
                
    --handle the error~
            else
                
    locker:UseItem(0) --open the Depot Chest (first item in the container)
                
    wait(1500) --Wait for 1.5 seconds
                local depot 
    Container.GetByName("Depot Chest")
                
                
                if (
    depot:isOpen() == falsethen
                    
    --handle the error~
                else
                    
    local backpack Container.GetByName("Dragon Backpack") --should be open by the userour ammo backpack
                    
    if (backpack:isOpen() == falsethen
                        
    --handle the error
                    
    else
                        while (
    depot:CountItemsOfID(7368) > 0) do
                            for 
    spot 0depot:ItemCount() do
                                
    local item depot:GetItemData(spot)
                                if (
    item.id == 7368then --assassin stars
                                    depot
    :MoveItemToContainer(spotbackpack:Index(), 0)
                                    
    wait(5001500)
                                    break
                                
    end
                            end
                        end
                    end
                end
            end
            
            setWalkerEnabled
    (true)
            
    setLooterEnabled(true)
            
    setTargetingEnabled(true)
            
    gotoLabel("GoToHunt")
        
    end
    end 

    can we change the function so he would deposit stuff inside depot?

    and about the dragon backpack is it inside depot or main backpack

Posting Permissions

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