Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: If Player On Screen, Stop Cavebotting and Follow him.

  1. #1
    iBot User
    Join Date
    May 2012
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    16
    Rep Power
    5

    Cool [closed] If Player On Screen, Stop Cavebotting and Follow him.

    I am Cavebotting with one of my chars, but if I enter in the cave with any of my Main, I need my Botter to stop cavebotting and Follow my Main.

    So it's about:

    If "any main" is on screen; stop cavebotting AND follow "any main"
    If not following "any main"; start cavebotting


    obs: I want it to follow only MY chars, so I could make a "list.txt"
    Last edited by Talis3o1; 02-05-2014 at 04:59 PM. Reason: added observation

  2. #2
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    why

  3. #3
    Normal User
    Join Date
    May 2013
    Location
    chile
    Posts
    75
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    12
    Rep Power
    4
    maybe this could work but have in mind is just a simple follow, the bot will not go through stairs etc...


    if local player = getcreatures("ps") ;;if target.name ~= 'MAIN NAME' then ; follow('MAIN NAME') ;
    and
    setcavebot ('off')
    end
    Last edited by adixtiath; 02-05-2014 at 03:06 AM.

  4. #4
    iBot User
    Join Date
    May 2012
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    16
    Rep Power
    5
    Quote Originally Posted by pink_panther View Post
    why
    Actually both are botters, but I used "main" to be less confuse.

    My weaker botter must pass by a cave with monsters he can die (he might survive, but there is a risk of dying), but I have a strong botter in there whom could follow him for safety.

  5. #5
    iBot User
    Join Date
    May 2012
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    16
    Rep Power
    5
    Quote Originally Posted by adixtiath View Post
    maybe this could work but have in mind is just a simple follow, the bot will not go through stairs etc...


    if local player = getcreatures("ps") ;;if target.name ~= 'MAIN NAME' then ; follow('MAIN NAME') ;
    and
    setcavebot ('off')
    end
    I used this one as 'Action' and it worked very well, thank you ^^

    PHP Code:
    local player getcreatures("ps"
    if 
    target.name ~= 'MAIN' then 
    followcreature
    ('MAIN')
    setcavebot('off')
    end 
    Yes, I needed a simple follow.


    But:
    1.is it possible to make a list of names for MAIN instead an unique name for MAIN?
    2.if not following, then set cavebot on (how to do this?)
    Last edited by Talis3o1; 02-05-2014 at 08:43 AM.

  6. #6
    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
    Code:
    local CHARACTERS = {"Char1", "Char2", "Char3"}
    
    if paround(7, unpack(CHARACTERS)) > 0 then
    	for _, PLAYER in ipairs(CHARACTERS) do
    		if paround(7, PLAYER) > 0 then
    			settargeting("no")
    			setlooting("no")
    			setcavebot("no")
    			followcreature(PLAYER)
    			wait(200, 400)
    			break
    		end
    	end
    else
    	settargeting("yes")
    	setlooting("yes")
    	setcavebot("yes")
    end

  7. #7
    Normal User
    Join Date
    May 2013
    Location
    chile
    Posts
    75
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    12
    Rep Power
    4
    walukasz have a lot of experience so u better try his action, but in case it doesnt work, you can use this

    local player = getcreatures("ps")
    if target.name ~= 'MAIN' then
    followcreature('MAIN')
    wait (400)
    setcavebot('off')
    else
    setcavebot('on')
    end


    you just have to do the action the same amount of players u need to follow, and you copy the action and just change the name of the player

  8. #8
    iBot User
    Join Date
    May 2012
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    16
    Rep Power
    5
    Quote Originally Posted by walukasz View Post
    Code:
    local CHARACTERS = {"Char1", "Char2", "Char3"}
    
    if paround(7, unpack(CHARACTERS)) > 0 then
    	for _, PLAYER in ipairs(CHARACTERS) do
    		if paround(7, PLAYER) > 0 then
    			settargeting("no")
    			setlooting("no")
    			setcavebot("no")
    			followcreature(PLAYER)
    			wait(200, 400)
    			break
    		end
    	end
    else
    	settargeting("yes")
    	setlooting("yes")
    	setcavebot("yes")
    end
    wow, thank you a lot, its an awesome action

    I had just done an action based on what adixtiath sent me
    but mine would be too big so I am going to use yours of course. Yours is awesome

    thanks everyone who helped me!!
    Last edited by Talis3o1; 02-20-2014 at 04:55 AM.

  9. #9
    Normal User
    Join Date
    May 2013
    Location
    chile
    Posts
    75
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    12
    Rep Power
    4
    no prob bro, is also recommended you add a backup plan in case its real risky to go through there, i would recommend to do a new setting on healer that have a higher % for using hp and just put it off, then

    if follow.isplayer == true then
    wait(500)
    setsettings("Settings\\Healer\\Rules\\Safehealing", "yes")
    else
    setsettings("Settings\\Healer\\Rules\\Safehealing", "no")
    end


    and also it would be safe to add this action

    if follow.isplayer == true then
    wait(500)
    setattackmode('defensive')
    else
    setattackmode('offensive')
    wait(500)
    end

    hope it helps u! if you use it, make sure to name the healing setting safehealing or change the action to the name u use, also you can change the setattackmode you can write balanced too !
    Last edited by adixtiath; 02-05-2014 at 06:14 PM.

  10. #10
    iBot User
    Join Date
    May 2012
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    18 Post(s)
    Reputation
    16
    Rep Power
    5
    Quote Originally Posted by adixtiath View Post
    no prob bro, is also recommended you add a backup plan in case its real risky to go through there, i would recommend to do a new setting on healer that have a higher % for using hp and just put it off, then

    if follow.isplayer == true then
    wait(500)
    setsettings("Settings\\Healer\\Rules\\Safehealing", "yes")
    else
    setsettings("Settings\\Healer\\Rules\\Safehealing", "no")
    end


    and also it would be safe to add this action

    if follow.isplayer == true then
    wait(500)
    setattackmode('defensive')
    else
    setattackmode('offensive')
    wait(500)
    end

    hope it helps u! if you use it, make sure to name the healing setting safehealing or change the action to the name u use, also you can change the setattackmode you can write balanced too !

    thank you for the idea
    all the chars can go through the cave, but the weaker ones could die if too many monsters appear, thats why i needed the help of the stronger one in the case both botters see themselves

    so i thought about the stronger one following the weak one in the case they see each other in the same screen

    it could also work in yalahar's demons for example
    if i wanted a char to go to demons while another one is hunting hellspawns, so the one at hells could help the other one to go through hells without wasting too much supply, or idk, many possibilities
    i will test walukasz' action and remove the part of "settargeting("no")" as soon as possible

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
  •