Signup Now
Results 1 to 7 of 7
  1. #1
    Free User
    Join Date
    Jun 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0

    Force Refill/Stop attack?

    I'm having an issue that is causing my character to die. I'm not sure how to fix it - maybe stopping attacking? What happens is my character runs low on supplies at apes (40 EK) but continues to kill things as he's leaving and ends up running out of supplies and dying because he's chasing the merlkins and sibang's into more groups... Can anyone help?

  2. #2
    Free User glowingstick's Avatar
    Join Date
    Jan 2014
    Posts
    334
    Reputation
    36
    Rep Power
    21
    I have not tried this myself but you can test it

    change supplycategories to the categories your supplies are set to
    auto(1000)
    if needresuply("supplycategories") then
    if $standtime > 2000 then
    settargeting("yes")
    else
    settargeting("no")
    end
    end
    Last edited by glowingstick; 06-17-2015 at 11:41 PM.

  3. #3
    Free User
    Join Date
    Jun 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0
    Wouldn't just this work?

    Quote Originally Posted by glowingstick View Post
    auto(1000)
    if needresuply("supplycategories") then
    settargeting("no")
    end
    end
    The problem is that my character never really stops going. He's just chasing crazy little monkies all over banuta

  4. #4
    Free User glowingstick's Avatar
    Join Date
    Jan 2014
    Posts
    334
    Reputation
    36
    Rep Power
    21
    Yeah it would but if u get stuck it wont do shit

  5. #5
    Free User
    Join Date
    Jun 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0
    Ooh, okay! I see what that does now. Thanks a bunch! I'll give it a try

  6. #6
    Free User Borges's Avatar
    Join Date
    Feb 2014
    Location
    Brazil
    Posts
    1,468
    Reputation
    205
    Rep Power
    25
    Quote Originally Posted by Stormcloak View Post
    Ooh, okay! I see what that does now. Thanks a bunch! I'll give it a try
    with the action above you need change section tab, or you will get stuck

    f.e:
     local Monsters = {"Sibang","Kongra","Merlkin"}

    --Function to stop attack and start attack

    function atkoff()
    for _, v in ipairs(Monsters) do
    setsetting('Targeting/Creatures/'..v ..'/Setting1/OnlyIfTrapped', 'yes')
    setsetting('Targeting/Creatures/'..v ..'/Setting1/Stance', 'Reach')
    end
    end

    function atkon()
    for _, v in ipairs(Monsters) do
    setsetting('Targeting/Creatures/'..v ..'/Setting1/OnlyIfTrapped', "no")
    setsetting('Targeting/Creatures/'..v ..'/Setting1/Stance', 'Reach')
    end
    end


    -- Your force refill
    auto(1000)
    if $wptsection == 'Hunt' and needresupply('your cap and categories here') then
    wait(500,1000)
    atkoff()
    gotolabel('Start','REFILL')
    end


    When you reach spawn
    atkon()


    or a persistent:
    auto(1000)
    if $wptsection == 'Hunt' then
    atkon()
    else
    atkoff()
    end
    Last edited by Borges; 06-18-2015 at 01:40 PM.
    Helped you? REP+

  7. #7
    Free User
    Join Date
    Jun 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0
    Thanks guys! I ended up using some of the things you taught me here to create a simple script. Seems to be working. I also editted the last part of my refill script to turn targetting back on.

    auto(1000)
    if $wptsection == 'FLOOR1' and needresupply(cap, 'a') then
    if $standtime > 5000 then
    settargeting("yes")
    else
    settargeting("no")
    gotolabel("viaREFILL")
    end
    end


    I really appreciate all the help.
    Last edited by Stormcloak; 06-18-2015 at 02:47 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
  •