Signup Now
Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Free User Jehryn's Avatar
    Join Date
    Jan 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0

    Follow Character When No Monsters on Screen

    Looking for a script that would set a certain "character" to put on follow mode if there are no monsters on screen. Like after the last MOB is dead it puts the "character" back on follow mode

    This way I could hunt on my knight and have my druid follow me and help fight with his own targeting but would only have to play 1 character. Thanks

  2. #2
    Banned
    Join Date
    Dec 2013
    Location
    United States
    Posts
    848
    Reputation
    30
    Rep Power
    0
    Sounds like a pretty intense script you're looking for. Hope someone could come up with that.

  3. #3
    Free User Jehryn's Avatar
    Join Date
    Jan 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0
    Well I'm a pretty scrubby scripter myself. But I got something working seems to be doing fine so far tested it a little.


    auto(100,200)
    if $followed.id == 0 and maround(0, 'crystal crusher', 'earth elemetnal', 'wyvern') <= 0 then
    follow('Bubble') wait(300, 500)
    end

  4. #4
    Free User Jehryn's Avatar
    Join Date
    Jan 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0
    it's working pretty well so far.. my goal right now is a 4 voc team hunt (single) floor spawn for now... where i can just control the knight.. and the mages/pally just follow him until there is a monster.. then use their targeting to decide whats best for them do to... ideal get it set to where if my knight leaves for town they will go and restock themselves and meet back at the hunting grounds... got my work cut out for me i think lol...


    OK so i think the next step will be a script to turn targeting off until creatures are 4 squares or close. this will help keep my mages from running past the knght after creatures but i can still keep them at keep away 3 squares
    Last edited by Jehryn; 02-10-2015 at 05:40 AM.

  5. #5
    Free User Riku's Avatar
    Join Date
    Nov 2014
    Posts
    365
    Reputation
    49
    Rep Power
    20
    @Jehryn

    I'll fix you everything. Just give me a moment

  6. #6
    Free User Riku's Avatar
    Join Date
    Nov 2014
    Posts
    365
    Reputation
    49
    Rep Power
    20
    @Jehryn

    Script looks kind of ugly since I typed in a lot of info about what each function does but it's just a script for you so it's okay... Right?

    -- Some script for Jehryn @WB Forums
    -- by Riku v1.0.0

    init start
    -- Name of Leader to follow & SQM Distance to Keep Away from Leader
    local Leader = "Knight"
    local Distance = 2
    local Msg = "refill" -- Code to make characters go refill (from Leader)
    local Wpt = "Back" -- Refill waypoint
    local Section = "Refill" -- Refill section

    -- Put monsters to consider (after dead, will follow)
    local Monsters = {"Crystal Crusher", "Earth Elemental", "Wyvern"}
    -- Amount of Monsters to activate Targeting
    local MinAmnt = 1
    -- Distance from char to monster to activate Targeting (Works together with Amount of Monsters)
    local DistanceM = 4

    -- How often should the script move towards Knight after all Monsters dead
    local Time = 200 -- 1000 = 1 second
    init end


    ------------->> Do not edit anything below! <<-------------
    auto(Time)

    if (maround(DistanceM, unpack(Monsters)) >= MinAmnt) then
    settargeting("yes")
    elseif (maround(DistanceM, unpack(Monsters)) < MinAmnt) then
    settargeting("no")
    end

    if (paround(7, Leader) == 1) and (maround(DistanceM, unpack(Monsters)) < MinAmnt) then
    reachcreature(Knight, Distance)
    end

    foreach newmessage m do
    if (m.sender == Leader) and (m.content == Msg) then
    gotolabel(Wpt, Section)
    end
    end


    Untested but tell me how it works.. And the making of characters going to refill is based on a message, so if you type "refill" for example in local chat (or Private message) it will go to the desired Waypoint and Section selected. You can edit your own message.. Most of this is customizeable.
    Last edited by Riku; 03-01-2015 at 11:32 AM.

  7. #7
    Free User Jehryn's Avatar
    Join Date
    Jan 2015
    Posts
    5
    Reputation
    10
    Rep Power
    0
    amazing man... this is a huge step in my master plan... thanks a lot.. i'll keep posting as i make progress

  8. #8
    Free User Riku's Avatar
    Join Date
    Nov 2014
    Posts
    365
    Reputation
    49
    Rep Power
    20
    @Jehryn

    Tell me if you need any added feature. Also post a response after test, so I can... uhm.. update.

  9. #9
    Free User senz's Avatar
    Join Date
    Dec 2013
    Location
    Spain
    Posts
    413
    Reputation
    75
    Rep Power
    21
    Thats amazing, will test!

  10. #10
    Free User
    Join Date
    Dec 2014
    Posts
    4
    Reputation
    10
    Rep Power
    0
    i keep getting this msg
    16:53:11 error in Persistent script NewPersistentScript:
    ["end"]:NewPersistentScript:36: '=' expected near 'end'

    all im doing is copy and paste how can i fix it

 

 

Tags for this Thread

Posting Permissions

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