Results 1 to 2 of 2

Thread: Need script for check doors locked or not

  1. #1
    iBot User
    Join Date
    Dec 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Exclamation Need script for check doors locked or not

    ibot warm friends, I need your help with the following problem because I could not solve myself ... the problem is this ..

    I want to use a key in my script, the key is necessary because it is a quest and every server save the door is locked start the game or some other player, for me it is necessary to compare if the door is open and have a key or use this locked ...
    for me it is very difficult to do this, if anyone can help is gratefully because I do not think being the only one with this problem, thanks

  2. #2
    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
    why u won't use forum search function?

    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

Posting Permissions

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