Results 1 to 5 of 5

Thread: Need actions open doors use key number

  1. #1
    Normal User
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Question Need actions open doors use key number

    Hi!

    need a actions that will know when the door locked,

    then uses the corresponding number on the key,

    in this case the door senja ...

  2. #2
    Normal User
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    refresh...

  3. #3
    Normal User
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    refresh

  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
    -- OpenDoorAction by RafiXWPT
    local DoorX = 0 -- Door X position
    local DoorY = 0 -- Door Y position
    local KeyId = 0 -- If you dont need key, simply left "0" here
    local ClosedDoorId = 0 -- Closed Door ID
    local ClosedByKeyDoorId = 0 -- Closed by Key Door ID, If you dont need that, simply left "0" here

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

  5. #5
    Normal User
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4
    thank you very much, Mr. RafiXWPT

    Setting Working:

    Code:
    -- OpenDoorAction by RafiXWPT
    local DoorX = 0 -- Door X position
    local DoorY = 0 -- Door Y position
    local KeyId = 0 -- If you dont need key, simply left "0" here
    local ClosedDoorId = 0 -- Closed Door ID
    local ClosedByKeyDoorId = 0 -- Closed by Key Door ID, If you dont need that, simply left "0" here
    
    wait(1000)
    -- If Door is closed by Key
    if toptileitem(32107,31568,9) == 7034 then
    wait(500,750)
         useitemon(2970, 32107,31568,9)
    -- If Door is just closed
    elseif toptileitem(32107,31568,9) == 7033 then
    wait(500,750)
         useitem(7033, 32107,31568,9)
    end
    wait(1000)
    Details:

    I found ID graphics and Items use special HUD:
    Code:
    addtext(cursorinfo().id, 20, 30)

Posting Permissions

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