Signup Now
Results 1 to 3 of 3
  1. #1
    Free User
    Join Date
    Sep 2016
    Posts
    10
    Reputation
    10
    Rep Power
    0

    Door Action - Not working sometimes

    Hello,

    I have a problem with a door action at Drakens, to enter drakens west.
    The problem is that it sometimes just opens and closes the door and then goes back to a certain waypoint and then trys again, and same thing happend again. And sometimes it works perfectly.
    So my question is, what should I do, so the script works perfectly every time, I cannot rely on that it does it sometimes?

    Here is the action, whats wrong?

    Code:
    --UseDoor
    wait(2000)
    if $attacked.id == 0 and (topitem(33104,31103,12).id == 11143 or topitem(33104,31103,12).id == 11143) then
         useitem(11143,33104,31103,12)
         wait(1000)
    end
    setsetting('Looting/Enabled', 'yes')
    Would really appreciate if someone could help me?

    //makkaN^

  2. #2
    Free User MenelZThais's Avatar
    Join Date
    Aug 2016
    Location
    Poland
    Posts
    253
    Reputation
    10
    Rep Power
    16
    Try this:
    Code:
    if islocation() then
    	usedoor(x, y, z, 'open')
    end

  3. #3
    Free User kirro's Avatar
    Join Date
    Jul 2015
    Posts
    336
    Reputation
    121
    Rep Power
    19
    Quote Originally Posted by markoo View Post
    Hello,

    I have a problem with a door action at Drakens, to enter drakens west.
    The problem is that it sometimes just opens and closes the door and then goes back to a certain waypoint and then trys again, and same thing happend again. And sometimes it works perfectly.
    So my question is, what should I do, so the script works perfectly every time, I cannot rely on that it does it sometimes?

    Here is the action, whats wrong?

    Code:
    --UseDoor
    wait(2000)
    if $attacked.id == 0 and (topitem(33104,31103,12).id == 11143 or topitem(33104,31103,12).id == 11143) then
         useitem(11143,33104,31103,12)
         wait(1000)
    end
    setsetting('Looting/Enabled', 'yes')
    Would really appreciate if someone could help me?

    //makkaN^
    Hi markoo,

    did you try to use the function given in Lucas Terra's library?


    usedoor(x, y, z, 'open'/'close')





    Troubled Animals Quest [100+]
    ALL
    Feyrist Animals Surface [160+]
    RP
    Feyrist Silencers Underground X1 [180+]
    RP | EK
    Feyrist Silencers Underground X2 [200+]
    RP | EK
    Feyrist Silencers Surface [210+]
    RP | EK
    Rathleton Sewers [240+]
    RP
    Glooth Fairy [350+]
    ED/MS
    Hardcore Draken Walls [400+]
    EK

 

 

Posting Permissions

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