XenoBot Forums - Powered by vBulletin

User Tag List

Page 7 of 15 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 150

Thread: [Update] XenoBot v3.0.0

  1. #61
    Senior Member Tripkip's Avatar
    Join Date
    Aug 2012
    Location
    Netherlands
    Posts
    1,310
    Mentioned
    105 Post(s)
    Tagged
    0 Thread(s)
    Aight thanks alot, Im gonna try that. While you're on it.

    Like half of the times, the Depositter doesnt deposit (all) my items. this causes the bot to get stuck when trying to buy potions/sd's because it doesn't thave enough cap.
    Could you take a look into that aswell? Its about the same scripts I just send you.

    Btw, I just checked the LUA, it actually says Self.Step (east). But in the XBST file its named Self.Step("EAST"). Ive changed it in the XBST file, geuss thats wrong huh xD?


    @DarkstaR or any other Pro scripter :P

  2. #62
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by Y2Quake View Post
    it seems like forgee's backpack reopener doesn't work anymore but well i think that doesn't matter much.

    i'll just have to change all my lua's

    Code:
    Self.CloseContainers()
    repeat
        wait(900)
    until (Self.UseItemFromEquipment("backpack") > 0) --opens main backpack
    wait(1000)
    Container.GetFirst():OpenChildren("brocade backpack", "backpack of holding", "orange backpack")
    A lot less messy then letting the bot sit there and use hotkeys at random until they're open, :P

  3. #63
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by Tripkip View Post
    Aight thanks alot, Im gonna try that. While you're on it.

    Like half of the times, the Depositter doesnt deposit (all) my items. this causes the bot to get stuck when trying to buy potions/sd's because it doesn't thave enough cap.
    Could you take a look into that aswell? Its about the same scripts I just send you.

    Btw, I just checked the LUA, it actually says Self.Step (east). But in the XBST file its named Self.Step("EAST"). Ive changed it in the XBST file, geuss thats wrong huh xD?


    @DarkstaR or any other Pro scripter :P
    It needs either

    Self.Step(EAST) or Self.Step("east"). Anything else that may have previously worked was actually a lucky bug not intended to work :P

    The deposit function has always been a bit sketchy as well. Just put the deposit statement in the lua 2 or 3 times, that's what I always do. Lmao. (I really don't know what the issue may be, it was made by Syntax and is very hard to understand.)

  4. #64
    Masiar's Avatar
    Join Date
    Aug 2012
    Location
    Here
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    In before version its work:

    Code:
    local HUDText = HUD.CreateTextDisplay(100, 100, "", 255, 120, 120)
    local HUDItem = HUD.CreateItemDisplay(100, 120, 1781, 48, 100)
    
    local countFile = assert(io.open("C:\\Users\\ht\\Desktop\\stones.txt", "r"))
    
    while (true) do
    
    	if(countFile ~= Self.ItemCount(1781)) then
    		local file = io.open("C:\\Users\\ht\\Desktop\\stones.txt", "w")
    		file:write(Self.ItemCount(1781))
    		file:flush()
    		file:close()
    	end
    
    	HUDText:SetText("Stones: " .. Self.ItemCount(1781) .. " left ")
        
    
        wait(1000)
    end
    On v3.0 i see this error msg:

    15:56 XenoScript Error:
    Script: stones.lua
    Line #: 1
    Chunk: ...\Documents\XenoBot\Scripts\stones.lua
    Error: attempt to call field 'CreateTextDisplay' (a nil value)
    This is an error with user-input and should not be reported as a bug with XenoBot.
    Last edited by Masiar; 12-24-2012 at 03:04 PM.

  5. #65
    robin's Avatar
    Join Date
    Jan 2012
    Location
    Poland / UK
    Posts
    105
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the update

    Unfortunately the following script doesn't work:
    [code=lua]
    local config = {
    attacks = {
    --[[
    spells should be prioritized from top to bottom, eg: exori gran will be attempted before exori or exori mas.

    players:
    true = the area will include players in the threshold
    false = the area will only count the monsters in the area

    aggressive:
    0 = attack triggers when no players are in the area.
    1 = attack triggers when only war enemies and skulled players, noone else.
    2 = attack triggers when innocents are in the area but not when friendlies are.
    3 = attack triggers when friendlies are in the area but not when innocents are.
    4 = attack triggers without any regards to players in the area.
    ]]
    --{words="exori gran", threshold=3, mana=340, radius=1, aggressive=4, players=false},
    {words="exori", threshold=4, mana=120, radius=1, aggressive=4, players=false}
    --{words="exori ico", threshold =1, mana=40, radius=1, aggressive=4, players=false},
    --{words="exori hur", threshold =2, mana=40, radius=1, aggressive=4, players=false}
    }
    }

    local function think()
    for _, info in ipairs(config.attacks)do
    local amount = getTargetsInArea(Self.Position(), info.radius, info.aggressive, info.players)
    if(amount)then
    if(amount >= info.threshold) and (Self.CanCastSpell(info.words)) then
    Self.Cast(info.words, info.mana)
    end
    end
    end
    end
    [/code]

    yields an error:
    16:07 XenoScript Error:
    Script: Script.lua
    Line #: 1943
    Chunk: C:\Program Files ?x86??XenoBot?Data?XenoLuaLib.lua
    Error: attempt to index global 'pos' (a nil value)
    This is an error with user-input and should not be reported as a bug with XenoBot.



    How can I fix this?

  6. #66
    Lifetime Subscriber
    Join Date
    Dec 2011
    Posts
    994
    Mentioned
    13 Post(s)
    Tagged
    0 Thread(s)
    Redownloading and clearing cache did nothing for me i already tried it
    Quote Originally Posted by Masiar View Post
    In before version its work:

    Code:
    local HUDText = HUD.CreateTextDisplay(100, 100, "", 255, 120, 120)
    local HUDItem = HUD.CreateItemDisplay(100, 120, 1781, 48, 100)
    
    local countFile = assert(io.open("C:\\Users\\ht\\Desktop\\stones.txt", "r"))
    
    while (true) do
    
    	if(countFile ~= Self.ItemCount(1781)) then
    		local file = io.open("C:\\Users\\ht\\Desktop\\stones.txt", "w")
    		file:write(Self.ItemCount(1781))
    		file:flush()
    		file:close()
    	end
    
    	HUDText:SetText("Stones: " .. Self.ItemCount(1781) .. " left ")
        
    
        wait(1000)
    end
    On v3.0 i see this error msg:
    oooh someone with the same problem as me. To get it to work for now change your first 2 lines.
    local HUDText = HUD.New(100, 100, "", 255, 120, 120)
    local HUDItem = HUD.New(100, 120, 1781, 48, 100)

  7. #67
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by robin View Post
    Thanks for the update

    yields an error:
    16:07 XenoScript Error:
    Script: Script.lua
    Line #: 1943
    Chunk: C:\Program Files ?x86??XenoBot?Data?XenoLuaLib.lua
    Error: attempt to index global 'pos' (a nil value)
    This is an error with user-input and should not be reported as a bug with XenoBot.



    How can I fix this?

    I fixed this. Re-download and re-install. config.players will be ignored, though - player consideration is determined by the aggressiveness.

    getTargetsInArea(Self.Position(), info.radius, info.aggressive)

  8. #68

    Join Date
    Dec 2012
    Location
    Northern Ireland
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi DarkstaR could you help me with this issue please,

    this is the slime trainer script im using, it worked perfectly before XenoBot update:

    ]]--
    while(true) do
    if (Self.TargetID() == 0) then
    if (getTargetsInArea(Self.Position(), 1, 0, 0) == 2) then
    setTargetingEnabled(true)
    wait(500)
    setTargetingEnabled(false)
    end
    end
    wait(2000,3000)
    end

    and this is the error im receiving after update:

    15:33 XenoScript Error:
    Script: SlimeTrainer.lua
    Line #: 1
    Chunk: C:?Users?robert?Documents?XenoBot?Scripts?SlimeTra iner.lua
    Error: unexpected symbol near ']'
    This is an error with user-input and should not be reported as a bug with XenoBot.

    Thanks in advance.

  9. #69
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by soul4soul View Post
    Redownloading and clearing cache did nothing for me i already tried it

    oooh someone with the same problem as me. To get it to work for now change your first 2 lines.
    local HUDText = HUD.New(100, 100, "", 255, 120, 120)
    local HUDItem = HUD.New(100, 120, 1781, 48, 100)
    I was wrong, sorry. I fixed what was originally wrong but messed up and broke a different piece of the code Now it works for sure, I tested it myself.

  10. #70
    XenoBot Developer DarkstaR's Avatar
    Join Date
    Dec 2010
    Posts
    6,104
    Mentioned
    1326 Post(s)
    Tagged
    16 Thread(s)
    Quote Originally Posted by DarkstaR View Post
    I fixed this. Re-download and re-install. config.players will be ignored, though - player consideration is determined by the aggressiveness.

    getTargetsInArea(Self.Position(), info.radius, info.aggressive)

    Look right up here ^

    Quote Originally Posted by Virse View Post
    Hi DarkstaR could you help me with this issue please,

    this is the slime trainer script im using, it worked perfectly before XenoBot update:

    ]]--
    while(true) do
    if (Self.TargetID() == 0) then
    if (getTargetsInArea(Self.Position(), 1, 0, 0) == 2) then
    setTargetingEnabled(true)
    wait(500)
    setTargetingEnabled(false)
    end
    end
    wait(2000,3000)
    end

    and this is the error im receiving after update:

    Thanks in advance.
    For you it is:
    if (getTargetsInArea(Self.Position(), 1, 0) == 2) then

    Just make sure to re-download and re-install.

Posting Permissions

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