Log in

View Full Version : 2 Ideas for useful scripts (Request)



duffxb
12-04-2016, 10:22 PM
So, along my way botting, I've had 2 issues i believe won't be hard to resolve with simple scripts...

1. Targetings anti-ks doesn't work properly, it just avoid monsters that have damage dealt by someone else... There could be sort of a "while player detected: targeting.stop()".

2. An alarm for messages on local chat. Every message other than spells.

That'd help me a lot!

Fetbojj
12-05-2016, 09:27 AM
1. While player detected targeting stop will get you killed by bot hunters in no time.

2. This was made by somebody else on forums.


local function npcsOnScreen()

local count = 0

for _, _ in Creature.iNpcs(7) do

count = count + 1

end

return count

end



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



LocalSpeechProxy.OnReceive("Chat Alarm", function(_, msgType, speaker, level, text)

if msgType == "say" and speaker ~= Self.Name() and npcsOnScreen() == 0 and playersOnScreen() < 2 then

alert()

end

end)