View Full Version : Money picker
Olevnik
05-27-2016, 02:10 PM
Hi!
Is there a script available that will detect money around character and put it into depot container?
I'd really appreciate this!
Thanks
Trykon
05-27-2016, 06:58 PM
Map.PickupItem(x, y, z, containerto, slot, amount)
Just create module to detect cash and add this
Map.GetTopMoveItem(x, y, z)
With this functions its ok, create loop iterating on tiles that you see and done xD
yompa93
06-02-2016, 05:21 PM
local ItemsToPickup = {3031, 3035} -- add id's to pickup here
local backpack = "backpack of holding" -- name of container to put items in. could be "Depot" for example.
Module.New('PickupItems', function()
local pos = Self.Position()
for x = -1, 1 do
for y = -1, 1 do
if table.contains(ItemsToPickup, Map.GetTopUseItem(pos.x + x, pos.y + y, pos.z).id) then
Map.PickupItem(pos.x + x, pos.y + y, pos.z, Container.GetByName(backpack):Index(), 0)
end
end
end
end)
I am writing this on my server pc so i cant test it, but it should work.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.