Results 1 to 3 of 3

Thread: lure action working great (mages and pallys)

  1. #1
    Normal User cat_salgado's Avatar
    Join Date
    Oct 2012
    Location
    Mexico
    Posts
    181
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    31
    Rep Power
    5

    lure action working great (mages and pallys)

    well after time thinking the way to make lure wpts work for sure i made this action, took ideas from others but this one is made by me hope you like it

    Code:
    local MONSTERS = {'Dragon Lord','Frost Dragon','Dragon Lord Hatchling'}
    
    --[AREAS]--
    local AREA1 = {32236,32293,32244,32298,7} --leftX,topY,rightX,bottomY,Zlevel
    local AREA2 = {32235,32291,32235,32291,7} --leftX,topY,rightX,bottomY,Zlevel
    
    --[FUNCTION]--
    local function LureArea(LEFTX, TOPY, RIGHTX, BOTTOMY, ZLEVEL)
        if (posx >= LEFTX) and (posx <= RIGHTX) and (posy >= TOPY) and (posy <= BOTTOMY) and (posz == ZLEVEL) then
            return true
        else
            return false
        end
    end
    
    if LureArea(unpack(AREA1)) == true or LureArea(unpack(AREA2)) == true then
       for i = 1, #MONSTERS do
           setsettings('Settings/Targeting/Monsters/'..MONSTERS[i]..'/ListSettings/Setting0/Stance','Keep Away')
       end
       else
       for i = 1, #MONSTERS do
           setsettings('Settings/Targeting/Monsters/'..MONSTERS[i]..'/ListSettings/Setting0/Stance','Lure')
        end
    end
    how does it work?

    first of all add normal lure waypoints (if you don't know how to use them look for a tutorial of setting lure waypoints)
    next copy that script into an action
    change the values for yours for example

    Code:
    local MONSTERS = {'Dragon Lord','Frost Dragon','Dragon Lord Hatchling'}  -- all the monsters that will change the stance from lure to keep away once they reached the lure point
    Code:
    --[AREAS]--
    local AREA1 = {32236,32293,32244,32298,7} --leftX,topY,rightX,bottomY,Zlevel in that order
    local AREA2 = {32235,32291,32235,32291,7} --leftX,topY,rightX,bottomY,Zlevel in that order
    add more areas under "local AREA2" line like this:

    Code:
    --[AREAS]--
    local AREA1 = {32236,32293,32244,32298,5} --leftX,topY,rightX,bottomY,Zlevel in that order
    local AREA2 = {32235,32291,32235,32291,7} --leftX,topY,rightX,bottomY,Zlevel in that order
    local AREA3 = {32266,32245,32290,32245,9} --leftX,topY,rightX,bottomY,Zlevel in that order
    and to end if you added more areas add the area in the action changing this:

    Code:
    if LureArea(unpack(AREA1)) == true or LureArea(unpack(AREA2)) == true then
       for i = 1, #MONSTERS do
    for this:

    Code:
    if LureArea(unpack(AREA1)) == true or LureArea(unpack(AREA2)) == true or LureArea(unpack(AREA3)) == true then
       for i = 1, #MONSTERS do
    this action will check if you are inside a designed area and if you are inside it will change the stance of designed monsters to keep away instead of lure so your character won't stand there when reached lure point

    well hope everyone understands and likes it

  2. #2
    Normal User
    Join Date
    Jul 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Thanks for posting this, very usefull !

  3. #3
    Normal User cat_salgado's Avatar
    Join Date
    Oct 2012
    Location
    Mexico
    Posts
    181
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    31
    Rep Power
    5
    Np please feed back

Posting Permissions

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