Results 1 to 2 of 2

Thread: I need help

  1. #1
    iBot User
    Join Date
    Apr 2012
    Posts
    117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    14 Post(s)
    Reputation
    17
    Rep Power
    5

    I need help

    hello I'm having a little trouble with this lure mode,
    I found this action in the forum but I can not use, someone here can help me?

    PHP 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(LEFTXTOPYRIGHTXBOTTOMYZLEVEL
        if (
    posx >= LEFTX) and (posx <= RIGHTX) and (posy >= TOPY) and (posy <= BOTTOMY) and (posz == ZLEVELthen 
            
    return true 
        
    else 
            return 
    false 
        end 
    end 

    if LureArea(unpack(AREA1)) == true or LureArea(unpack(AREA2)) == true then 
       
    for 1#MONSTERS do 
           
    setsettings('Settings/Targeting/Monsters/'..MONSTERS[i]..'/ListSettings/Setting0/Stance','Keep Away'
       
    end 
       
    else 
       for 
    1#MONSTERS do 
           
    setsettings('Settings/Targeting/Monsters/'..MONSTERS[i]..'/ListSettings/Setting0/Stance','Lure'
    one of my questions is. WHAT would leftX, Topy, rightX, bottomY, Zlevel?

    Thanks

  2. #2
    iBot User walukasz's Avatar
    Join Date
    Feb 2012
    Location
    Poland
    Posts
    312
    Mentioned
    39 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    25 Post(s)
    Reputation
    67
    Rep Power
    5
    Well, leftX is the x coordinate of left side of the box, rightX is the same but to the right
    topY is the y coordinate of top side of the box, bottomY is the same but in the bottom
    Z level is z coordinate
    so these values tells the bot where is the box you are supposed to run in, anywhere outside those boxes it will lure.

    You will also need special areas that will open and close as you reach the box and a lure location in the box.
    Last edited by walukasz; 02-15-2014 at 02:49 PM.

Posting Permissions

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