Results 1 to 7 of 7

Thread: Open door action

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

    Open door action

    local doorx = 32027
    local doory = 31444
    local doorid = 7042

    if toptileitem(doorx, doory, posz) == doorid then
    while toptileitem(doorx, doory, posz) == doorid do
    useitem(doorid, doorx, doory, posz)
    wait(300,450)
    end
    end
    end

    This action was supposed to open the door of ince witch tower in barbarian camp, but never open the door... What's wrong with it?

  2. #2
    Normal User
    Join Date
    Jul 2012
    Location
    Sweden
    Posts
    221
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    58
    Rep Power
    5
    PHP Code:
    -- OpenDoorAction by RafiXWPT
    local DoorX 
    -- Door X position
    local DoorY 
    -- Door Y position
    local KeyId 
    -- If you dont need keysimply left "0" here
    local ClosedDoorId 
    -- Closed Door ID
    local ClosedByKeyDoorId 
    -- Closed by Key Door ID, If you dont know that IDsimply left "0" here

    wait
    (500)
    -- If 
    Door is closed by Key
    if toptileitem(DoorX,DoorY,posz) == ClosedByKeyDoorId then
         useitemon
    (KeyIdDoorX,DoorY,posz)
    wait(500,750)
    -- If 
    Door is just closed
    elseif toptileitem(DoorX,DoorY,posz) == ClosedDoorId then
         useitem
    (ClosedDoorIdDoorX,DoorY,posz)
    wait(500,750)
    end
    wait
    (1000

  3. #3
    Normal User
    Join Date
    Jun 2012
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    not working too :'(

  4. #4
    Normal User RafiXWPT's Avatar
    Join Date
    Jun 2012
    Location
    (Poland) http://rafixwptscripts.com
    Posts
    1,602
    Mentioned
    31 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    128 Post(s)
    Reputation
    128
    Rep Power
    9
    Quote Originally Posted by hcapelas View Post
    not working too :'(
    if mine action
    PHP Code:
    -- OpenDoorAction by RafiXWPT 
    local DoorX 
    -- Door X position 
    local DoorY 
    -- Door Y position 
    local KeyId 
    -- If you dont need keysimply left "0" here 
    local ClosedDoorId 
    -- Closed Door ID 
    local ClosedByKeyDoorId 
    -- Closed by Key Door ID, If you dont need that IDsimply left "0" here 

    wait
    (500
    -- If 
    Door is closed by Key 
    if toptileitem(DoorX,DoorY,posz) == ClosedByKeyDoorId then 
         useitemon
    (KeyIdDoorX,DoorY,posz
    wait(500,750
    -- If 
    Door is just closed 
    elseif toptileitem(DoorX,DoorY,posz) == ClosedDoorId then 
         useitem
    (ClosedDoorIdDoorX,DoorY,posz
    wait(500,750
    end 
    not working for you that mean you are doing something wrong

  5. #5
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    ok i said shit so i edited it
    click the image below to see my thread.



  6. #6
    Normal User
    Join Date
    Jun 2012
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    wht could be wrong for the char not opening the door? i testes coordinates for 5 times and they are right and its just a closed door i left 0 where its supposed to be

  7. #7
    Normal User
    Join Date
    Jan 2014
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    3
    thx mate

Posting Permissions

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