XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 10 of 13

Thread: Position Checker

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4

    Join Date
    Apr 2013
    Posts
    314
    Mentioned
    65 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by flax97 View Post
    Could you look on this script ?
    Hi,

    Your problem is the following (starting around line 96):

    lua code:

    if (labelName == "UseDoor1") then
    Walker.Stop()
    Self.UseItemFromGround(32821, 31112, 7)
    Walker.Start()
    end

    if (labelName == "UseDoor2") then
    Walker.Stop()
    Self.UseItemFromGround(32821, 31112, 7)
    Walker.Start()
    end

    if (labelName == "Targeting") then
    Targeting.Start()
    end

    if (labelName == "NonTargeting") then
    Targeting.Stop()
    end


    You need to change these "if" to 'elseif'. The reason why it is doing nothing on these labels is because with the 'if', it is grouped with the following label and therefore never using the lua you provided. Change the above 'if's to 'elseif' and let me know if you have further problems. You will also need to remove the 'end' from each as well.

    lua code:

    elseif (labelName == "resetBP") then
    Walker.Stop()
    if (HideEquipment) then
    Client.HideEquipment()
    wait(1000, 1500)
    end
    Self.CloseContainers()
    Self.OpenMainBackpack(true):OpenChildren({LootBP,true}, {StackBP, true}, {GoldBP, true})
    Walker.Start()
    end




    Regards,
    O4T
    Last edited by only4tibia; 05-24-2014 at 11:27 AM.

Posting Permissions

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