Inne > Kosz

[OTClient v8] Przydatne Skrypty

<< < (2/2)

GxC:
-------------Dodano-------------------
Skrypt na wyłączenie cavebot+targetbot gdy mana spadniej ponizej danego %, uruchomi ponownie gdy bedzie ponad dany %
Skrypt na pokazywanie %hp, mobków/graczy
Skrypt na otwieranie wszystkich bp

Rstfj:
GFB POD DUPE


--- Kod: ---local holdGfbHotkey = 'PageDown'
local holdGfbText = 'Rzuc tu GFB'
local holdGfbTextCol = 'yellow'
local holdGfbTiles = {}
local holdGfbIsOn = false

onKeyPress(function(keys)
  if keys == holdGfbHotkey and holdGfbIsOn then
    local tile = getTileUnderCursor()
    local currTile = table.find(holdGfbTiles, tile)
    if currTile then
      holdGfbTiles[currTile]:setText('')
      table.remove(holdGfbTiles, currTile)
    else
      table.insert(holdGfbTiles, tile)
      holdGfbTiles[#holdGfbTiles]:setText(holdGfbText, holdGfbTextCol)
    end
  end
end)

addSwitch('holdGfb', 'Rzucanie GFB Pagedown', function(widget)
  widget:setOn(not widget:isOn())
  if not widget:isOn() then
    for i = 1, #holdGfbTiles do
      holdGfbTiles[1]:setText('')
      table.remove(holdGfbTiles, 1)
    end
  end
  holdGfbIsOn = widget:isOn()
end)

macro(1, function()
  if holdGfbIsOn then
    for _, holdGfbTile in pairs(holdGfbTiles) do
      if holdGfbTile:getTopThing() then
        useWith(tonumber (storage.gfbId), holdGfbTile:getTopUseThing())
        return
end
    end
  end
end)
      addTextEdit("IdRunki", storage.gfbId or "3161", function(widget, text)
storage.gfbId = text
end)

--- Koniec kodu ---



Tak, ukradłem, tylko głupi by nie skorzystał
Działa tak samo jak skrypt na ava tylko, że z innym klawiszem ;)

Rstfj:

--- Cytat: GxC w 11 Marzec 2022, 17:23:22 ---W skrypcie na ava wystarczy dac id fbomby pozdrawiam.
--- Cytat: Rstfj w 11 Marzec 2022, 07:48:33 ---GFB POD DUPE


--- Kod: ---local holdGfbHotkey = 'PageDown'
local holdGfbText = 'Rzuc tu GFB'
local holdGfbTextCol = 'yellow'
local holdGfbTiles = {}
local holdGfbIsOn = false

onKeyPress(function(keys)
  if keys == holdGfbHotkey and holdGfbIsOn then
    local tile = getTileUnderCursor()
    local currTile = table.find(holdGfbTiles, tile)
    if currTile then
      holdGfbTiles[currTile]:setText('')
      table.remove(holdGfbTiles, currTile)
    else
      table.insert(holdGfbTiles, tile)
      holdGfbTiles[#holdGfbTiles]:setText(holdGfbText, holdGfbTextCol)
    end
  end
end)

addSwitch('holdGfb', 'Rzucanie GFB Pagedown', function(widget)
  widget:setOn(not widget:isOn())
  if not widget:isOn() then
    for i = 1, #holdGfbTiles do
      holdGfbTiles[1]:setText('')
      table.remove(holdGfbTiles, 1)
    end
  end
  holdGfbIsOn = widget:isOn()
end)

macro(1, function()
  if holdGfbIsOn then
    for _, holdGfbTile in pairs(holdGfbTiles) do
      if holdGfbTile:getTopThing() then
        useWith(tonumber (storage.gfbId), holdGfbTile:getTopUseThing())
        return
end
    end
  end
end)
      addTextEdit("IdRunki", storage.gfbId or "3161", function(widget, text)
storage.gfbId = text
end)

--- Koniec kodu ---



Tak, ukradłem, tylko głupi by nie skorzystał
Działa tak samo jak skrypt na ava tylko, że z innym klawiszem ;)

--- Koniec cytatu ---

--- Koniec cytatu ---


taaaaaaaaaaaaaaaaaaa, problem polega kiedy chcesz walic w bosa z avy + rzucać gfb. Sklonowanie skryptu nie starczy bo w storage ci bierze to samo id i rzuca ava ;p

Aguila:
czy posiada ktos scrypt na robienie runek pod otc?

Nawigacja

[0] Indeks wiadomości

[*] Poprzednia strona

There was an error while thanking
Lubiee...
Idź do wersji pełnej