XenoBot Forums - Powered by vBulletin

User Tag List

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

Thread: Attack only my creatures!

  1. #1

    Join Date
    Aug 2014
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Attack only my creatures!

    I think should be a nice idea to don't atack the creature from the other players... I think too that should be good idea to put this option on Targeting (better than on a script) if my character will only atack my creatures!

    It's because usually the other players don't say nothing to you when you see them on the same cave, and hunt his creatures in peace but... but sometimes, the other players can think that I'm boting because I atack his creature without say nothing, then they start to talk and question you why you make this.. all this problem will disappear if we have an option to only atack our creatures (the creatures that want to atack us)

    It's possible to make this?? and... there are a script that make this?? (because I was searching for it, but I didn't found anything..) :/

    Thank you!
    Last edited by damacra; 11-09-2015 at 12:46 PM.

  2. #2
    corico's Avatar
    Join Date
    Feb 2012
    Location
    Spain
    Posts
    145
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    Damacra +1
    Sold Ek lvl 120 to @Kim
    Bought 2x Xenobot Licences from @Royaliti
    Bought script of Brimstone bugs surface from @Joshwa534
    Bought script of Quaras an Cemetery -1 from @Neant
    Sold ED lvl 118 to @Andreolsoon

  3. #3

    Join Date
    Jan 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i would also love to see this happen

  4. #4
    Whiplash's Avatar
    Join Date
    Sep 2011
    Location
    Western Australia
    Posts
    65
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    +1 This would be a great idea

    Would it be possible though? Is there a way for the bot to detect that?
    If the creature attacks you i guess it is yours. But that's not perfect.
    If a creature changes target you'll immediately target it.

  5. #5

    Join Date
    Jul 2015
    Posts
    18
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I found this on the forums, but like I mentioned on another thread... it works but sometimes it take a little to long to set targeting back on. anyways here it is and maybe one the guys that know about scripting can help us fix it:

    -don't post forgee.lua dependent scripts-
    Last edited by Joshwa534; 11-30-2015 at 02:11 AM.

  6. #6
    Moderator Elvang's Avatar
    Join Date
    Dec 2010
    Location
    B.C. Canada
    Posts
    1,365
    Mentioned
    104 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Cambute View Post
    I found this on the forums, but like I mentioned on another thread... it works but sometimes it take a little to long to set targeting back on. anyways here it is and maybe one the guys that know about scripting can help us fix it:
    People still using forgee.lua -facepalm-
    Last edited by Joshwa534; 11-30-2015 at 02:12 AM.

  7. #7

    Join Date
    Nov 2015
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Elvang View Post
    People still using forgee.lua -facepalm-
    What should we do then?

    No offense

  8. #8
    Moderator Elvang's Avatar
    Join Date
    Dec 2010
    Location
    B.C. Canada
    Posts
    1,365
    Mentioned
    104 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Viniply View Post
    What should we do then?

    No offense
    Learn from it and make it better. Forgee is from a couple years ago now.

  9. #9

    Join Date
    Jul 2015
    Posts
    18
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Elvang View Post
    Learn from it and make it better. Forgee is from a couple years ago now.
    Not everyone in here has the knowledge you do. If I use it is becuase nothing better has been implemented or at least no one in this comunity has taken the time to help others.

    Instead of replying with a comment like that, why dont you go ahead and provide a solution. I have been looking around and around and so far I have not been able to find a antiks that is not forgee dependant. I was just trying to help a subs just like me.

    Thanks

  10. #10
    Moderator shadowart's Avatar
    Join Date
    Dec 2014
    Location
    Sweden
    Posts
    1,985
    Mentioned
    225 Post(s)
    Tagged
    3 Thread(s)
    This will turn off targeting when there's another player on the screen:

    lua code:

    local function playersOnScreen()
    local count = 0
    for name, _ in Creature.iPlayers(7) do
    if name ~= Self.Name() then
    count = count + 1
    end
    end
    return count
    end

    Module("Anti-kill steal", function(self)
    local playerCount = playersOnScreen()
    if Targeting.IsIgnoring() and playerCount == 0 then
    Targeting.StopIgnoring()
    elseif not Targeting.IsIgnoring() and playerCount > 0 then
    Targeting.StartIgnoring()
    end
    self:Delay(1000)
    end)


    However, it might not play nicely with more advanced scripts that use the ignore function for other stuff. It might also not work on some OTs.
    Last edited by shadowart; 12-01-2015 at 07: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
  •