Results 1 to 6 of 6

Thread: [ACTION] Check if stone is there/if direction of lever

  1. #1
    Normal User
    Join Date
    Jul 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Question [ACTION] Check if stone is there/if direction of lever

    Hello, is it possible to check the direction of the lever or if the stone is there or not, I'm having an issue getting to town if its closed.

    Click image for larger version. 

Name:	checklever.JPG 
Views:	27 
Size:	10.4 KB 
ID:	5197

    OT: where am I?


    cheers

  2. #2
    Normal User dragonicevo's Avatar
    Join Date
    May 2012
    Location
    canada
    Posts
    1,600
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    65
    Rep Power
    8
    you can have use and then have a check location action after on the other side and go back to label look at my tut
    http://www.tibiaibot.com/forum/showt...2925#post42925 for basic setup for knight

    If i helped or you liked my scripts rep + me

    trusted free scripts by pink_panther and 3173654 and acid alchamy and marlhex and spens13

  3. #3
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    lever to the left has different id than lever to the right, you can check it in ur action with toptileitem(1234, 5678, 9) put there position of ur levers
    check id with hud or anyhow you want.

  4. #4
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    I'm phone ATM but I'll try

    if toptileid(xyz)==xxxx then uselever() end

  5. #5
    Normal User
    Join Date
    Jul 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    nice how do I check the ID of the lever?

    lever left lever right IDs? anyone?

  6. #6
    Normal User sirmate's Avatar
    Join Date
    Mar 2012
    Location
    Poland
    Posts
    176
    Mentioned
    2 Post(s)
    Tagged
    3 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    105
    Rep Power
    6
    Lever ID's are 2771 and 2772, you need to match the right one. Remember to change LEVER_LEFT_ID, POSX, POSY and POSZ spots with your data.

    Code:
    if (isitemontile(LEVER_LEFT_ID, POSX, POSY, POSZ)) then
        local TOP_TILE_ITEM = toptileitem(POSX, POSY, POSZ)
        
        while (TOP_TILE_ITEM ~= LEVER_LEFT_ID) do
            local MOVE_DIRECTION = wheretomove(POSX, POSY, POSZ)
            moveitems(TOP_TILE_ITEM, ground(POSX, POSY, POSZ), ground(MOVE_DIRECTION.x, MOVE_DIRECTION.y, POSZ), 100) wait(1000, 1500)
            
            TOP_TILE_ITEM = toptileitem(POSX, POSY, POSZ)
        end
        
        useitem(LEVER_LEFT_ID, ground(POSX, POSY, POSZ)) wait(1000, 1500)
    end
    (๏̯͡๏ )

Posting Permissions

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