i mean like na had, ware you could mass loot like all the bodies in x yards. Example.
Code:
--[[
Autoloot script created by Chaotic
version 1.2
!!!Make sure you have fast loot enabled!!!
]]
--User Variables--
ScriptDelay=3;
Color = 0xFFFFA54F;
------------------
function GetDistance3D(x1, y1, z1, x2, y2, z2)
local d1,d2,d3;
d1 = x2 - x1;
d1 = d1*d1;
d2 = y2 - y1;
d2 = d2*d2;
d3 = z2 - z1;
d3 = d3 * d3;
return math.sqrt(d1+d2+d3);
end
function IsInRange( Object )
local ObjectX, ObjectY, ObjectZ;
ObjectX, ObjectY, ObjectZ = game.getCoordinates(Object);
if GetDistance3D( Player.X, Player.Y, Player.Z, ObjectX, ObjectY, ObjectZ ) < 5 then
return 1;
end
return 0;
end
TickPause = 0;
function Timer()
if TickPause > 0 then
TickPause = TickPause - 1;
return;
end
if move.isMoving(Player.Pointer) == 1 or game.isInCombat(Player.Pointer) == 1 and game.isMounted(Player.Pointer) == 1 then
TickPause = 1;
return;
end
local EntryCount,ThisObject;
game.updateObjectList();
EntryCount = game.getObjectListEntryCount();
for i = 0, EntryCount, 1 do
ThisObject = game.getObjectListEntry(i);
if ThisObject ~= Player.Pointer and game.getType(ThisObject) == TYPE_NPC
and game.getLife(ThisObject) == 0 and IsInRange(ThisObject) == 1 and game.isLootable(ThisObject) == 1 then
game.useObject(ThisObject);
TickPause = 3;
return;
end
end
end
function Load()
system.setTimerCallback("Timer",500);
game.printChat("Autoloot: Loaded v1.2!",Color);
end