PDA

View Full Version : Advance following



desche188
10-21-2012, 10:57 AM
i have my druid that sios people while i follow around people and hate when going up and down stairs putting follow on again and was like why not have an advanced follow that checks + and - a floor to check where the follow is than goes up and down ladders or stairs and follows again.

drop iT
11-24-2013, 06:19 PM
any progress?

Bushu
11-25-2013, 06:35 PM
I think it might be done with this script of DarkstaR

local TextDisplayList = {HUD.CreateTextDisplay(25, 5, "Players Above:", 255, 120, 120)}

while (true) do

local players = {}


for index = CREATURES_LOW, CREATURES_HIGH do --find them bitches
local creature = Creature.GetFromIndex(index)
if (creature:isValid() and creature:isPlayer()) then
local pos = creature:Position()
local selfloc = Self.Position()
if (math.abs(selfloc.x - pos.x) < 7 and math.abs(selfloc.y - pos.y) < 5 and selfloc.z - 1 == pos.z) then
players[#players+1] = creature:Name()
end
end
end

while (#TextDisplayList <= #players) do --Add more text displays for player names
TextDisplayList[#TextDisplayList+1] = HUD.CreateTextDisplay(25, 5 + (12 * (#TextDisplayList)), "", 255, 120, 120)
end

for i = 1, #TextDisplayList-1 do --Show them bitches
if (i <= #players) then
TextDisplayList[i+1]:SetText(players[i])
else
TextDisplayList[i+1]:SetText("")
end
end

wait(600)
end


You might want to find id's of stairs/holes/ladders etc, and go up/down with this.
That's just my idea