XenoBot Forums - Powered by vBulletin

User Tag List

Page 6 of 11 FirstFirst ... 45678 ... LastLast
Results 51 to 60 of 105

Thread: [Update] XenoBot v2.7.1

  1. #51
    Senior Member
    Join Date
    Feb 2012
    Posts
    595
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Rossie View Post
    Ok I use 2 lua fil in my script , and I notice just one stop work ... maybe it the way they are made ? .. beacause I botted 7 account .. and 3 with the same script , and only this 3 get bug , but before the update I never notice this bug ..


    registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
    function onWalkerSelectLabel(labelName)
    if (labelName == "Check1") then
    setBotEnabled(false)
    if ((Self.ItemCount(3031) >= 1000)) or (Self.Cap() < 90) or ((Self.ItemCount(12517) >= 3)) then
    setBotEnabled(true)
    gotoLabel("Godepot")
    else
    setBotEnabled(true)
    gotoLabel("Cave2")
    end
    elseif (labelName == "Check2") then
    setBotEnabled(false)
    if ((Self.ItemCount(3031) >= 1000)) or (Self.Cap() < 90) or ((Self.ItemCount(12517) >= 3)) then
    setBotEnabled(true)
    gotoLabel("Godepot")
    else
    setBotEnabled(true)
    gotoLabel("Cave3")
    end
    elseif (labelName == "Check3") then
    setBotEnabled(false)
    if ((Self.ItemCount(3031) >= 1000)) or (Self.Cap() < 90) or ((Self.ItemCount(12517) >= 3)) then
    setBotEnabled(true)
    gotoLabel("Godepot")
    else
    setBotEnabled(true)
    gotoLabel("Cave1")
    end

    elseif (labelName == "AllezHunt") then
    setBotEnabled(false)
    gotoLabel("Gocave")
    setBotEnabled(true)
    elseif (labelName == "Allezdepot") then
    setBotEnabled(false)
    gotoLabel("Godepot")
    setBotEnabled(true)
    elseif (labelName == "Place1") then
    setBotEnabled(false)
    gotoLabel("Cave1")
    setBotEnabled(true)
    elseif (labelName == "Place2") then
    setBotEnabled(false)
    gotoLabel("Cave2")
    setBotEnabled(true)
    elseif (labelName == "Place3") then
    setBotEnabled(false)
    gotoLabel("Cave3")
    setBotEnabled(true)
    elseif (labelName == "Bin voir") then
    setBotEnabled(false)
    gotoLabel("Gocave")
    setBotEnabled(true)
    elseif (labelName == "Acheterbp") then
    setBotEnabled(false)
    gotoLabel("Temple")
    setBotEnabled(true)
    end
    end
    Are you sure you've downloaded the newest version of xenobot?
    There was 2 updates in very short time, the first one made problems like the one you're explaining.
    Maybe try to download and install xenobot again?
    My trades at xb:
    Sold 159 ed to DarkDevil
    Bought 180 rp from jikoe
    Bought 310+ ek from Magson
    Sold Recovery Key to LuckyStrike
    Sold 190 rp to Royaliti
    Bought 230+ ed from Andy
    Sold 140+ ek to Tobjun
    Bought 150ms/150 rp from pagge123
    Bought World Transfer Code from Veela

  2. #52
    Tirekos's Avatar
    Join Date
    Feb 2012
    Location
    Spain
    Posts
    286
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    [code=lua]BoltsBp = "Purple Backpack"
    DefaultBoots = 3079 -- Your Boots ID, Draken Boots ID is 4033, Boots of Haste ID is 3079
    ManaToEquip = 90 -- Mana Amount to equip or unequip Soft Boots in percentage


    --!!!!!!!!!!!!!!!!!!!!!!!
    --!!!DO NOT EDIT BELOW!!!
    --!!!!!!!!!!!!!!!!!!!!!!!

    function equipSoftBoots()
    local BOOTS1ID = 6529 -- Soft Boots ID
    local SOFTSINUSE = 3549 -- softs being in use
    local Backpack = Container.GetFirst()
    if (Self.Feet().id == 6530) then
    for Spot = 0, Backpack:ItemCount() do
    local Boots = Backpack:GetItemData(Spot)
    if (Boots.id == DefaultBoots) then
    Backpack:MoveItemToEquipment(Spot, "feet")
    end
    end
    elseif (math.floor((Self.Mana() / Self.MaxMana()) * 100)) < ManaToEquip and (Self.Feet().id ~= SOFTSINUSE) then
    for Spot = 0, Backpack:ItemCount() do
    local Boots = Backpack:GetItemData(Spot)
    if (Boots.id == BOOTS1ID) then
    Backpack:MoveItemToEquipment(Spot, "feet")
    end
    end
    elseif (math.floor((Self.Mana() / Self.MaxMana()) * 100)) > ManaToEquip and (Self.Feet().id ~= DefaultBoots) then
    for Spot = 0, Backpack:ItemCount() do
    local Boots = Backpack:GetItemData(Spot)
    if (Boots.id == DefaultBoots) then
    Backpack:MoveItemToEquipment(Spot, "feet")
    end
    end
    end
    end

    function equipLifeRing()
    local Backpack = Container.GetFirst()
    if (Self.Ring().id ~= 3089) then
    for Spot = 0, Backpack:ItemCount() do
    local Ring = Backpack:GetItemData(Spot)
    if (Ring.id == 3052) then
    Backpack:MoveItemToEquipment(Spot, "ring")
    end
    end
    end
    end

    Self.HealthPercent = function ()
    return math.abs(Self.Health() / (Self.MaxHealth() * 0.01))
    end

    function healer()
    if (Self.HealthPercent() < 90) and (Self.HealthPercent() > 71) and (Self.CanCastSpell("exura")) then
    Self.Say("exura")
    elseif (Self.HealthPercent() < 75) and (Self.HealthPercent() > 56) and (Self.CanCastSpell("exura gran")) then
    Self.Say("exura gran")
    elseif (Self.HealthPercent() < 60) and (Self.CanCastSpell("exura gran san")) then
    Self.Say("exura gran san")
    end
    end

    function SpellCast(spell)
    local Monster1 = "Lizard High Guard"
    local Monster2 = "Lizard Legionnaire"
    local Monster3 = "Lizard Dragon Priest"
    local Monster4 = "Killer Caiman"
    local TargetID = Self.TargetID()
    local Target = Creature.GetByID(TargetID)
    local pos = Self.Position()
    if (Self.CanCastSpell(spell)) and (Target:Name() == Monster1) and (getDistanceBetween(Target:Position(), pos) <= 4) then
    Self.Say(spell)
    elseif (Self.CanCastSpell(spell)) and (Target:Name() == Monster2) and (getDistanceBetween(Target:Position(), pos) <= 4) then
    Self.Say(spell)
    elseif (Self.CanCastSpell(spell)) and (Target:Name() == Monster3) and (getDistanceBetween(Target:Position(), pos) <= 4) then
    Self.Say(spell)
    elseif (Self.CanCastSpell(spell)) and (Target:Name() == Monster4) and (getDistanceBetween(Target:Position(), pos) <= 4) then
    Self.Say(spell)
    elseif (not Self.MeetsSpellRequirements(spell)) then
    print("%s can not be cast. You either lack the mana or required level!", spell)
    end
    end

    while (true) do
    healer()
    SpellCast("exori san")
    equipSoftBoots()
    equipLifeRing()
    if (Self.DistanceFromPosition(33197, 31347, 6) < 1) then
    gotoLabel("AfterTP")
    wait(1000)
    elseif (Self.DistanceFromPosition(33144, 31248, 6) < 1) then
    gotoLabel("AfterTP1")
    wait(1000)
    elseif (Self.DistanceFromPosition(33200, 31347, 6) < 1) then
    gotoLabel("AfterTP2")
    wait(1000)
    elseif Self.ItemCount(236) >= 1 and (Self.HealthPercent() <= 65) then
    Self.UseItemWithMe(236)
    sleep(math.random(200, 600))
    elseif Self.ItemCount(283) >= (math.random(10, 15)) then
    Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, 283, 284, 285)
    elseif Self.ItemCount(10328) > 0 then
    Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, 10328)
    elseif Self.ItemCount(3450) >= 1 then
    local MainBp = Container.GetFirst()
    local DestinationBp = Container.GetByName(BoltsBp)
    for spot = 0, MainBp:ItemCount() do
    local item = MainBp:GetItemData(spot)
    if (item.id == 3450) then
    MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 0)
    wait(500)
    break
    end
    end
    end
    wait(200)
    end [/code]

    Some one can check it?
    Done Trades:
    Bought 150RP from Xongiver.
    Bought 1kk from Coins.
    Bought 1 Xeno License from Madarauchiha.
    Bought 2kk from PunktG.
    Bought script from Joshwa534.
    Bought 158ED from Fenol.
    Bought some cash from Pidek.
    Sold 135EK on another forum site
    Sold 170RP to Mr. Smith

  3. #53
    Banned
    Join Date
    Jan 2012
    Posts
    345
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    check in order to?
    [highlight=lua]
    while (true) do

    if (Self.DistanceFromPosition(33197, 31347, 6) < 1) then
    gotoLabel("AfterTP")
    wait(1000)
    elseif (Self.DistanceFromPosition(33144, 31248, 6) < 1) then
    gotoLabel("AfterTP1")
    wait(1000)
    elseif (Self.DistanceFromPosition(33200, 31347, 6) < 1) then
    gotoLabel("AfterTP2")
    wait(1000
    [/highlight]
    In my opinion this would make you permanently jumping between labels "AfterTP"; "AfterTP1" and "AfterTP2".
    This should be made with either oneliner or label manager.
    Last edited by Joe; 09-02-2012 at 06:37 AM.

  4. #54
    Lifetime Subscriber stefps's Avatar
    Join Date
    Dec 2011
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @DarkstaR idk what is happening that the bot is not buying the right amount of mps and in my case if i havent used any ultimate healing potion it buys 1 mor every reffil. idk if theres someone that already said it i havent read all the replies

  5. #55

    Join Date
    Jun 2012
    Posts
    44
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by stefps View Post
    @DarkstaR idk what is happening that the bot is not buying the right amount of mps and in my case if i havent used any ultimate healing potion it buys 1 mor every reffil. idk if theres someone that already said it i havent read all the replies
    Most lua's call the function "buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal" instead of Shop.BuyItem or whatever, because of this the script will always buy at least 1 of every item even if you are already have enough. If it's set to buy uhp before manas, and it didn't withdraw money for uhp due to the fact that it doesn't need any and then in turn the script buys one, it'll fail to buy manas. What you need to do is change the amount it withdraw for manas from 50 to around ~75gp that way it'll have enough money to buy both. It'll leave you with a little extra cash in your backpack when you return to the hunt but it'll solve the problem you are having.

  6. #56
    Super Moderator Infernal Bolt's Avatar
    Join Date
    Dec 2011
    Location
    Skellefteċ, Sweden
    Posts
    2,880
    Mentioned
    217 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by Demonic Saint View Post
    Most lua's call the function "buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal" instead of Shop.BuyItem or whatever, because of this the script will always buy at least 1 of every item even if you are already have enough. If it's set to buy uhp before manas, and it didn't withdraw money for uhp due to the fact that it doesn't need any and then in turn the script buys one, it'll fail to buy manas. What you need to do is change the amount it withdraw for manas from 50 to around ~75gp that way it'll have enough money to buy both. It'll leave you with a little extra cash in your backpack when you return to the hunt but it'll solve the problem you are having.
    thats why I use this one instead.

    [code=lua]
    function buyItems(item, count) -- item = item ID, count = how many you want to buy up to
    wait(900, 1200)
    if (Self.ItemCount(item) < count) then
    Self.ShopBuyItem(item, (count-Self.ItemCount(item)))
    wait(200, 500)
    end
    end
    [/code]

  7. #57
    Lifetime Subscriber
    Join Date
    Dec 2011
    Posts
    994
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Infernal Bolt View Post
    thats why I use this one instead.

    [code=lua]
    function buyItems(item, count) -- item = item ID, count = how many you want to buy up to
    wait(900, 1200)
    if (Self.ItemCount(item) < count) then
    Self.ShopBuyItem(item, (count-Self.ItemCount(item)))
    wait(200, 500)
    end
    end
    [/code]
    Agreed. I use the same thing except I didnt make it a function I put the if statement right inside the label.

    ShopBuyItem always buys at least 1 of the item even even if the count is 0 or negative.

  8. #58
    Super Moderator Infernal Bolt's Avatar
    Join Date
    Dec 2011
    Location
    Skellefteċ, Sweden
    Posts
    2,880
    Mentioned
    217 Post(s)
    Tagged
    2 Thread(s)
    Quote Originally Posted by soul4soul View Post
    Agreed. I use the same thing except I didnt make it a function I put the if statement right inside the label.

    ShopBuyItem always buys at least 1 of the item even even if the count is 0 or negative.
    The reason I did it that way was because I'm too lazy to write the (count-Self.ItemCount(item)) everytime ;D

  9. #59
    Bjornen's Avatar
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    223
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yesterday looter was working fine again. It's been working fine ever since I last made this post. But now it's back

  10. #60
    Lifetime Subscriber stefps's Avatar
    Join Date
    Dec 2011
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Demonic Saint. The problem is that i dont use that function "buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal"

Posting Permissions

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