Results 1 to 4 of 4

Thread: D˙vida Action

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

    D˙vida Action

    hi i want to know where i put this action for everytime a pk appear, he go to label "godp"

    -- [ Correr se PK atacar ] -- local label = 'godp' -- Label que o char vai correr se o pk atacar.

    if underattack('p') then
    settargeting('off')
    gotolabel(godp) end

    if i put in WHEYPOINT, he will do only when he pass in that SQM, i want he do the action whenever he be attacked.


    OTHER QUESTION.....
    i want a action for he open a dor if it is closed.

    sorry for the english, im learning


    Thank you

  2. #2
    iBot User Raph_'s Avatar
    Join Date
    Feb 2013
    Posts
    391
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    59
    Rep Power
    4
    Create an normal action, not on waypoints:
    if underattack("p") then
    settargeting("off")
    gotolabel("godp")
    wait(25000, 35000)
    end


    About the door you shud check door's id and position, so you can do like:
    local x, y, z = 12345, 12345, 7 -- posx, posy, posz
    local _ID = 1234 -- Door ID


    -- do not change above.
    if toptileitem(x, y, z) == _ID then
    useitem(_ID, ground(x, y, z))
    wait(300, 500)
    end

  3. #3
    Normal User
    Join Date
    Apr 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    thanks a lot, the action of pk i put in ACTION/LIST? right?

  4. #4
    Normal User
    Join Date
    Apr 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    what is the ID of closed door?

Posting Permissions

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