XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 2 of 2

Thread: Follow Friend if end atack(target)

  1. #1

    Join Date
    Dec 2016
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Follow Friend if end atack(target)

    I need script for follow my Firend .

    only if zero monster in screen OR i dont have target monster(Targeting auto)


    Now it changes every 1 sec from Follow to Target Monster and vice versa

    Code:
    local player = "XXXX"
    Module.New("AutoFollow", function(module)
    	for i = CREATURES_LOW, CREATURES_HIGH do
    		local creature = Creature.GetFromIndex(i)
    		if creature:isValid() and creature:ID() ~= Self.ID() then
    			if creature:isOnScreen() and creature:isVisible() and creature:isAlive() and creature:isReachable() then
    				local name = creature:Name()
    				if creature:isPlayer() and creature:Name():lower() == player:lower() and not creature:isFollowed() then
    					creature:Follow()
    				end
    			end
    		end
    	end
    	module:Delay(1000)
    end)
    OR

    Code:
    Module.New("follow", function(module)
    	Creature.Follow("XXXX")
    module:Delay(3000)
    end)

    EDIT. DONE. It was enough to add a label to the walker and its call.
    Last edited by metis; 08-10-2017 at 02:05 PM.

  2. #2

    Join Date
    Mar 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it follow friend and atack monsters and follw new??

Posting Permissions

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