arconas
01-14-2016, 09:55 PM
How can i make xeno bot drop all gold i have on 1 sqm in house, and all other items on different one? Simply how to drop items on one sqm which you choose? :D Please help ^^
eldera
01-14-2016, 10:52 PM
This should work.
local dropItems = {
{ item = "gold coin", position = {33000, 22000, 7} },
{ item = "demon armor", position = {31000, 11000, 6} },
}
function dropInHouse()
for _ in pairs (dropItems) do
local row = dropItems[_]
local item = Item.GetItemIDFromDualInput(row.item)
local position = row.position
Self.DropItem(position[1], position[2], position[3], item)
end
end
--[[ HOW TO USE ]]--
registerNativeEventListener(WALKER_SELECTLABEL, 'onLabel')
function onLabel(name)
if (name == "droItemsInHouse") then
dropInHouse()
return
end
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.