Results 1 to 4 of 4

Thread: Attack only my monsters

  1. #1
    Normal User
    Join Date
    Sep 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5

    Attack only my monsters

    The Ibot targeting is, AFAIK almost perfect, since it also attacks other players monsters. So I decided to create a script that only attacks monsters but for some reason it also targets NPCs and also monsters that are not attacking me (other way to say I can't make it work).

    Code:
    local mgot = getcreatures("ms")
    local mqtd = mgot.count
    
    if maround(5) >= 1 then 
    	for i=0,mqtd do
    		if mgot[0].isattackme and mgot[0].hpperc > 0 then
    			pausewalking(1000)
    			attack(mgot[0].name)
    		end
    	end
    end
    Does anyone know why it isn't working?

  2. #2
    Normal User dragonicevo's Avatar
    Join Date
    May 2012
    Location
    canada
    Posts
    1,600
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    3 Post(s)
    Reputation
    65
    Rep Power
    8
    monster must atk me in targetting should work try this.
    http://www.tibiaibot.com/forum/showt...2925#post42925 for basic setup for knight

    If i helped or you liked my scripts rep + me

    trusted free scripts by pink_panther and 3173654 and acid alchamy and marlhex and spens13

  3. #3
    Normal User
    Join Date
    Sep 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    10
    Rep Power
    5
    Silly me rep++

  4. #4
    Normal User aligator24's Avatar
    Join Date
    May 2013
    Location
    Polska
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    4 Post(s)
    Reputation
    8
    Rep Power
    0
    Quote Originally Posted by dragonicevo View Post
    monster must atk me in targetting should work try this.
    yea but this sometimes avoid dragons when i run from wpt to wpt
    monster must hit me to be recognized as atacking me

    so any other clue?
    witamy w piekle

Posting Permissions

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