Ce dépôt a été archivé le 2020-03-15. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
QuestHelper:TextOut(string.format("finishing thanks to differences, %s,%s,%s vs %s,%s,%s (%s)",tostring(cc),tostring(cx),tostring(cy),tostring(c),tostring(nx),tostring(ny),ccandtostring(dist(nx-cx,ny-cy))or"lol"))
AddDataPrefix(Bolus(c,x,y,rc,rz)..strchar(tostring(QuestHelper:PlayerFaction())))-- The playerfaction can be removed, as it's now encoded in the collection shard. Not removing it for compatibility reasons.
end
AppendFlag(IsMounted(),'M')
AppendFlag(IsFlying(),'Y')
AppendFlag(IsSwimming(),'S')
AppendFlag(UnitOnTaxi("player"),'X')
AppendFlag(UnitIsDeadOrGhost("player"),'D')
forx=1,dist(nx-cx,ny-cy)-1do
AddData('C')
end
-- first we go forward as much as is reasonable
whileTestDirection(cd,'^')doend
ifTestDirection(cd+1,'>')then-- if we can go right, we do so, then we go forward again
whileTestDirection(cd,'^')doend
-- In theory, if the original spot was back-and-to-the-right of us, we could need to go right *again* and then forward *again*. So we do.
ifTestDirection(cd+1,'>')then
whileTestDirection(cd,'^')doend
end
elseifTestDirection(cd-1,'<')then-- the same logic applies for left.
whileTestDirection(cd,'^')doend
ifTestDirection(cd-1,'<')then
whileTestDirection(cd,'^')doend
end
else
-- And we also test back, just in case.
ifTestDirection(cd+2,'v')then
whileTestDirection(cd,'^')doend
end
end
QuestHelper:Assert(cx==nxandcy==ny)
-- Done!
end
localGetRawLocation
localfunctionOnUpdate()
QH_Collect_Traveled_Point(GetRawLocation())
end
functionQH_Collect_Traveled_Init(QHCData,API)
-- We're actually just going to disable this for now.
--[[
Merger=API.Utility_Merger
QuestHelper:Assert(Merger)-- I need to get rid of this stupid space hack someday