View Full Version : Attack only my creatures!
damacra
11-09-2015, 12:44 PM
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!
corico
11-20-2015, 11:54 AM
Damacra +1
leegreen
11-21-2015, 11:57 PM
i would also love to see this happen
Whiplash
11-28-2015, 12:22 AM
+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.
Cambute
11-28-2015, 04:18 AM
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-
Elvang
11-29-2015, 05:51 AM
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-
Viniply
11-30-2015, 12:24 AM
People still using forgee.lua -facepalm-
What should we do then?
No offense :D
Elvang
11-30-2015, 05:37 AM
What should we do then?
No offense :D
Learn from it and make it better. Forgee is from a couple years ago now.
Cambute
12-01-2015, 05:48 PM
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
shadowart
12-01-2015, 06:08 PM
This will turn off targeting when there's another player on the screen:
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.
brindeds
12-12-2015, 11:17 AM
This will turn off targeting when there's another player on the screen:
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.
I believe there is a more effective solution to iso. Using a possible packet of agro monster.
Guran99
12-12-2015, 11:31 AM
+1
Good idea!
shadowart
12-12-2015, 11:36 AM
I believe there is a more effective solution to iso. Using a possible packet of agro monster.
That information is not revealed in the lua API. Darkstar would have to add it to the bot core.
Cambute
12-12-2015, 12:45 PM
Thnx a lot shadowart
brindeds
12-16-2015, 11:46 AM
It seems like DarkstaR will implement cooming soon this :p
murdoelite
12-18-2015, 02:29 PM
Not my script, credit to whoever made it. (lukefisher?)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.