Results 1 to 2 of 2

Thread: Help me please with action clean Lever

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

    Help me please with action clean Lever

    I need to clean the area.
    before using the lever.

    Lever Action:
    PHP Code:
    if toptileitem(32156,31125,10) == 2772 then
         useitem
    (2772,32156,31125,10)
    end 

  2. #2
    Premium User Daniloco's Avatar
    Join Date
    Jun 2012
    Location
    Chile
    Posts
    74
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    33
    Rep Power
    5
    Quote Originally Posted by bubuzop View Post
    I need to clean the area.
    before using the lever.

    Lever Action:
    PHP Code:
    if toptileitem(32156,31125,10) == 2772 then
         useitem
    (2772,32156,31125,10)
    end 
    Check: http://www.tibiaibot.com/forum/showt...ll=1#post74943

    PHP Code:
    local X 32156 -- Pos X of Wpt
    local Y 
    31125 -- Pos Y of Wpt
    local State1 
    2772 -- ID of Wpt in first state (LeversHolesEct have 2 StatesOpen and Closedthus we need to add 2 ID's)
    local State2 = 2773 -- ID of Wpt in second state (Levers, Holes, Ect have 2 States: Open and Closed, thus we need to add 2 ID'
    s)

    while 
    toptileitem(X,Y,posz) ~= State1 and toptileitem(X,Y,posz) ~= State2 do 
    reachlocation(X,Y,posz
    wait(500
    moveitems(toptileitem(X,Y,posz), ground(X,Y,posz), ground(posx,posy,posz), 100
    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
  •