Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Wind Powered
    Join Date
    Jul 2014
    Location
    Floripa
    Posts
    26
    Reputation
    10
    Rep Power
    0

    Lightbulb Need persistent to open door

    i need a persistent to open the door when it is closed and if not targeting

    i try this :

    auto(800, 1000)
    if topitem(32698,31235,11).id == 5735 then
    useitem(5735,32698,31235,11)
    wait(20000)
    end

    but dont work fine, it only opens the door sometimes :C
    Last edited by huliemek; 07-18-2014 at 03:50 PM.

  2. #2
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,819
    Reputation
    220
    Rep Power
    29
    usedoor(x,y,z, 'open')

  3. #3
    Wind Powered
    Join Date
    Jul 2014
    Location
    Floripa
    Posts
    26
    Reputation
    10
    Rep Power
    0
    i put this on persistent hotkeys and create a action like this in front the door but he continues opening sometimes.

    i found this hotkey on forum with same id of the door and both are with the same problem...

    PHP Code:
     local topid topitem($wptx$wpty$wptz).id

    auto
    (100)
    wait(500)
    if 
    topid ~= 5737 then usegrounditem(5735)end 

  4. #4
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,819
    Reputation
    220
    Rep Power
    29
    why do u set door opening as a persistent?
    U are trying to do script with depositer etc?
    If yes, use usedoor function it will open doors if closed..

  5. #5
    Wind Powered
    Join Date
    Jul 2014
    Location
    Floripa
    Posts
    26
    Reputation
    10
    Rep Power
    0
    because put bot in yalahar arena but have 5 doors like this in hunt

    and the char is locked if someone push



    on ibot i put persistent and when the gate was closed he open but I can not do this in windbot

  6. #6
    Moderator mistgun's Avatar
    Join Date
    Dec 2013
    Location
    Lodz, Poland
    Posts
    1,819
    Reputation
    220
    Rep Power
    29
    maybe try this
    init start        
    local doors = topitem(32698,31235,11).id
    init end

    auto(800, 1000)
    if doors == 5735 then
    reachlocation(32698, 31235, 11) waitping()
    useitem(5735, 0, ground(32698, 31235, 11))
    wait(20000)
    end
    Last edited by mistgun; 07-20-2014 at 09:23 PM.

  7. #7
    Wind Powered
    Join Date
    Jul 2014
    Location
    Floripa
    Posts
    26
    Reputation
    10
    Rep Power
    0
    did not work :/ but thanks for trying to help me... I think the bot does not recognize the door or whatever

  8. #8
    Banned
    Join Date
    Jul 2014
    Posts
    358
    Reputation
    83
    Rep Power
    0
    Quote Originally Posted by mistgun View Post
    maybe try this
    init start        
    local doors = topitem(32698,31235,11).id
    init end

    auto(800, 1000)
    if doors == 5735 then
    reachlocation(32698, 31235, 11) waitping()
    useitem(5735, 0, ground(32698, 31235, 11))
    wait(20000)
    end
    damn, you can't put this in init block...

    usedoor(x, y, z, "open") should either work or print an error if doors are not recognized as far as I remember. Maybe u put wrong coords/ids.

    anyway try this
    init start
    local doors = {
    {x = 32698, y = 31235, z = 11, closedid = 5735},
    {x = 32698, y = 31235, z = 11, closedid = 5735},
    {x = 32698, y = 31235, z = 11, closedid = 5735},
    {x = 32698, y = 31235, z = 11, closedid = 5735},
    {x = 32698, y = 31235, z = 11, closedid = 5735},
    }
    init end

    auto(800, 1000)
    for _, door in ipairs(doors) do
    if topitem(door.x, door.y, door.z).id == door.closedid then
    reachlocation(door.x, door.y, door.z) waitping()
    useitem(door.closedid, ground(door.x, door.y, door.z)) waitping()
    end
    end
    Last edited by walukasz; 08-02-2014 at 07:17 PM.

  9. #9
    Free User
    Join Date
    Feb 2014
    Posts
    32
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by walukasz View Post
    damn, you can't put this in init block...

    usedoor(x, y, z, "open") should either work or print an error if doors are not recognized as far as I remember. Maybe u put wrong coords/ids.

    anyway try this
    init start
    local doors = {
    {x = 32698, y = 31235, z = 11, closedid = 5735},
    {x = 32698, y = 31235, z = 11, closedid = 5735},
    {x = 32698, y = 31235, z = 11, closedid = 5735},
    {x = 32698, y = 31235, z = 11, closedid = 5735},
    {x = 32698, y = 31235, z = 11, closedid = 5735},
    }
    init end

    auto(800, 1000)
    for _, door in ipairs(door) do
    if topitem(door.x, door.y, door.z).id == door.closedid then
    reachlocation(door.x, door.y, door.z) waitping()
    useitem(door.closedid, ground(door.x, door.y, door.z)) waitping()
    end
    end
    Don't work neither D: and i need this too :/

  10. #10
    Banned
    Join Date
    Jul 2014
    Posts
    358
    Reputation
    83
    Rep Power
    0
    just a a typo, try now, it works for sure.

 

 

Tags for this Thread

Posting Permissions

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