1
Ogólne / Odp: MODYFIKACJE DOMKÓW
« dnia: 20 Marzec 2024, 21:33:20 »
Robić
Osoby które lubią ten post: Mrozu
Ta sekcja pozwala Ci zobaczyć wszystkie wiadomości wysłane przez tego użytkownika. Zwróć uwagę, że możesz widzieć tylko wiadomości wysłane w działach do których masz aktualnie dostęp.
UI.Label("Eatable items:")
if type(storage.foodItems) ~= "table" then
storage.foodItems = {3582, 3577}
end
local foodContainer = UI.Container(function(widget, items)
storage.foodItems = items
end, true)
foodContainer:setHeight(35)
foodContainer:setItems(storage.foodItems)
macro(10000, "eat food", function()
if not storage.foodItems[1] then return end
-- search for food in containers
for _, container in pairs(g_game.getContainers()) do
for __, item in ipairs(container:getItems()) do
for i, foodItem in ipairs(storage.foodItems) do
if item:getId() == foodItem.id then
return g_game.use(item)
end
end
end
end
-- can't find any food, try to eat random item using hotkey
if g_game.getClientVersion() < 780 then return end -- hotkey's dont work on old tibia
local toEat = storage.foodItems[math.random(1, #storage.foodItems)]
if toEat then g_game.useInventoryItem(toEat.id) end
end)
macro(5000, "Logout", function() logout() end)
local holdkrzakHotkey = 'F2'
local holdkrzakText = 'KRZAK'
local holdkrzakTextCol = 'white'
local holdkrzakTiles = {}
local holdkrzakIsOn = false
onKeyPress(function(keys)
if keys == holdkrzakHotkey and holdkrzakIsOn then
local tile = getTileUnderCursor()
local currTile = table.find(holdkrzakTiles, tile)
if currTile then
holdkrzakTiles[currTile]:setText('')
table.remove(holdkrzakTiles, currTile)
else
table.insert(holdkrzakTiles, tile)
holdkrzakTiles[#holdkrzakTiles]:setText(holdkrzakText, holdkrzakTextCol)
end
end
end)
addSwitch('holdkrzak', 'Krzak Hold F2', function(widget)
widget:setOn(not widget:isOn())
if not widget:isOn() then
for i = 1, #holdkrzakTiles do
holdkrzakTiles[1]:setText('')
table.remove(holdkrzakTiles, 1)
end
end
holdkrzakIsOn = widget:isOn()
end)
macro(200, function()
if holdkrzakIsOn then
for _, holdkrzakTile in pairs(holdkrzakTiles) do
if holdkrzakTile:getTopThing() then
useWith(tonumber (storage.krzakId), holdkrzakTile:getTopUseThing())
return
end
end
end
end)
addTextEdit("IdRunki", storage.krzakId or "3156", function(widget, text)
storage.krzakId = 3156
end)
local holdscianaHotkey = 'F1'
local holdscianaText = 'SCIANA'
local holdscianaTextCol = 'blue'
local holdscianaTiles = {}
local holdscianaIsOn = false
onKeyPress(function(keys)
if keys == holdscianaHotkey and holdscianaIsOn then
local tile = getTileUnderCursor()
local currTile = table.find(holdscianaTiles, tile)
if currTile then
holdscianaTiles[currTile]:setText('')
table.remove(holdscianaTiles, currTile)
else
table.insert(holdscianaTiles, tile)
holdscianaTiles[#holdscianaTiles]:setText(holdscianaText, holdscianaTextCol)
end
end
end)
addSwitch('holdsciana', 'Magic Wall Hold F1', function(widget)
widget:setOn(not widget:isOn())
if not widget:isOn() then
for i = 1, #holdscianaTiles do
holdscianaTiles[1]:setText('')
table.remove(holdscianaTiles, 1)
end
end
holdscianaIsOn = widget:isOn()
end)
macro(200, function()
if holdscianaIsOn then
for _, holdscianaTile in pairs(holdscianaTiles) do
if holdscianaTile:getTopThing() then
useWith(tonumber (storage.scianaId), holdscianaTile:getTopUseThing())
return
end
end
end
end)
addTextEdit("IdRunki", storage.scianaId or "3180", function(widget, text)
storage.scianaId = 3180
end)
Współrzędne tpka na wejście do areny: [X: 2480] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2490] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2500] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2510] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2520] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2530] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2540] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2550] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2560] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2570] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2580] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2590] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2600] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2610] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2620] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2630] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2640] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2650] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2660] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2670] [Y: 1005] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2480] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2490] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2500] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2510] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2520] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2530] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2540] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2550] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2560] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2570] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2580] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2590] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2600] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2610] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2620] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2630] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2640] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2650] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2660] [Y: 1022] [Z: 7]
Współrzędne tpka na wejście do areny: [X: 2670] [Y: 1022] [Z: 7]