Results 1 to 2 of 2

Thread: Need help with an action

  1. #1
    iBot User
    Join Date
    Sep 2013
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    4

    Need help with an action

    So it's for the Yalahar Grim Reaper script (RP) and currently in action there is an anti lure feature that reads

    if maround(7, 'grim reaper') >= 3 then
    setsettings('Settings\\Targeting\\Monsters\\Grim reaper\\OnlyIfTrapped', 'yes')
    stopattack()
    gotolabel('w131')
    end

    So all that happens is that it leaves the current spawn but it continues botting and doesn't atk grims..
    How can I make it still go to label w131 HOWEVER, turn "onlyiftrapped" to no after label w131 is reached..?

    I know this is probably easy but I suck so I can't figure it out myself :<
    Thanks in advance.

    Edit;
    I noticed now that it has an action right before w131 where it turns "onlyiftrapped" to no HOWEVER, thats before w131 meaning it will skip it.. Should I change the label to the waypoint before the said action above then or what? x.x
    Last edited by Missen; 09-08-2013 at 07:45 AM.

  2. #2
    Normal User StaR Scripts's Avatar
    Join Date
    Sep 2013
    Location
    Manchester, England
    Posts
    156
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    1 Post(s)
    Reputation
    16
    Rep Power
    4
    You just have to set the settings back to onlyiftrapped'no'. This should work

    PHP Code:
    if maround(7'grim reaper') >= 3 then
    setsettings
    ('Settings\\Targeting\\Monsters\\Grim reaper\\OnlyIfTrapped''yes'
    stopattack()
    gotolabel('w131')
    else
    setsettings('Settings\\Targeting\\Monsters\\Grim reaper\\OnlyIfTrapped''no')
    end 

Posting Permissions

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