Results 1 to 5 of 5

Thread: If X Player on screen or Atk by player Alarm plus Go to X Waypoint

  1. #1
    Normal User Hiyagi's Avatar
    Join Date
    Jul 2012
    Posts
    103
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    22
    Rep Power
    5

    If X Player on screen or Atk by player Alarm plus Go to X Waypoint

    Can someone help me with that action persistent*

    local PLAYERS = {"bubble", "yalahar", "Knightmare"}

    if playeronscreen(name) or unpack(PLAYERS) then
    settargeting('no')
    end

    if PlayerOnScreen(name) unpack(PLAYERS) and (posz == x) then
    gotolabel('LeaveWar')
    end


    something like that or better

  2. #2
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    this? i didnt really understand what you wanted
    local PLAYERS = {"bubble", "yalahar", "Knightmare"}
    local LABEL = "LabelToRunTo"

    if (paround(7,false,unpack(PLAYERS)) > 0 or underattack("p")) then
    playsound("alert.wav")
    gotolabel(LABEL) wait(1000,2000)
    end

  3. #3
    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 soder View Post
    this? i didnt really understand what you wanted
    local PLAYERS = {"bubble", "yalahar", "Knightmare"}
    local LABEL = "LabelToRunTo"

    if (paround(7,false,unpack(PLAYERS)) > 0 or underattack("p")) then
    playsound("alert.wav")
    gotolabel(LABEL) wait(1000,2000)
    end
    soder, if u do that your character current wpt will be always on label "LabelToRunTo"
    best idea is to add this action (like soder) with name: "CheckPlayer"
    local PLAYERS = {"bubble", "yalahar", "Knightmare"}
    local LABEL = "LabelToRunTo"

    if (paround(7,false,unpack(PLAYERS)) > 0 or underattack("p")) then
    gotolabel(LABEL)
    setsettings("Settings\\Actions\\List\\Alert\\Enabled","yes")
    wait(1000*60)
    end


    and action with name "Alert"
    playsound("alert.wav")


    and just after wpt LabelToRunTo add action:
    setsettings("Settings\\Actions\\List\\CheckPlayer\\Enabled","no")


    I think that will be much better

  4. #4
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Of course it's better, i just gave him what he asked for.

  5. #5
    Normal User Hiyagi's Avatar
    Join Date
    Jul 2012
    Posts
    103
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    22
    Rep Power
    5
    So it will be.

    local PLAYERS = {"bubble", "yalahar", "Knightmare"}
    local LABEL = "LabelToRunTo"

    if (paround(7,false,unpack(PLAYERS)) > 0 or underattack("p")) then
    gotolabel(LABEL)
    setsettings("Settings\\Actions\\List\\Alert\\Enabled","yes")
    setsettings("Settings\\Targeting\\Monsters\\Category A\\OnlyIfTrapped", "yes")
    wait(1000*60)
    end


    On alert
    local PLAYERS = {"bubble", "yalahar", "Knightmare"}

    if (paround(7,false,unpack(PLAYERS)) > 0 or underattack("p")) then
    playsound("alert.wav")
    end



    I'll add this around all the cave to run to a especific waypoint to be smooth the way to PZ or safe zone

    Action
    setsettings("Settings\\Actions\\List\\CheckPlayer1\\Enabled","no")
    setsettings("Settings\\Actions\\List\\CheckPlayer2\\Enabled","yes")



    When is safe should work this?
    local LABEL = "LabelToRunTo"

    if pzone then
    setsettings("Settings\\Actions\\List\\CheckPlayer1\\Enabled","no")
    setsettings("Settings\\Actions\\List\\CheckPlayer2\\Enabled","no")
    setsettings("Settings\\Actions\\List\\CheckPlayer3\\Enabled","no")
    setsettings("Settings\\Targeting\\Monsters\\Category A\\OnlyIfTrapped", "no")
    gotolabel(LABEL)
    end



    BTW soder <3 Thnks dude, RafiXWPT you too (y) +REP both.

Posting Permissions

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