Here you can change website language:

Autor Wątek: [OTClient v8] Przydatne Skrypty  (Przeczytany 34115 razy)

0 użytkowników i 1 Gość przegląda ten wątek.

GxC

« Ostatnia zmiana: 07 Listopad 2022, 09:24:06 wysłana przez GxC »
 
Osoby które lubią ten post: Vallention, SiR mOST, Nyga Ricz, razzor, Efendi, Kiara

razzor

Odp: [OTClient v8] Przydatne Skrypty
« Odpowiedź #1 dnia: 17 Grudzień 2021, 21:24:35 »
Siemka, tu Mikelondiony, dorzucam fajny skrypt na wyświetlanie prywatnych wiadomości zawsze na wierzchu, żeby się nie zgubiły, polecam wszystkim, którzy odchodzą od kompa a nie chcą, żeby coś im umknęło:

local height = 50
local widget = setupUI([[
Panel
  id: msgPanel
  height: 400
  width: 200
]], g_ui.getRootWidget())
 
onTalk(function(name, level, mode, text, channelId, pos)
    if (mode ~= 4) then return end
    local msgLabel = g_ui.loadUIFromString([[
Label
  color: #5ff7f7
  background-color: black
  opacity: 0.87
]], widget)
    msgLabel:setText(name .." ["..level.. "]: " .. text)
    msgLabel:setPosition({y = height, x = 10})
    if height > 210 then
        for msgIndex, message in ipairs(widget:getChildren()) do
            message:setPosition({y = message:getPosition().y - 13, x = 10})
            if (msgIndex == 1) then message:destroy() end
        end
    else
        height = height + 13
    end
end)
 
Osoby które lubią ten post: Vallention, Krzychu, Nyga Ricz, GxC, baddie, Adasiik1

Krzychu

Odp: [OTClient v8] Przydatne Skrypty
« Odpowiedź #2 dnia: 18 Grudzień 2021, 19:56:50 »
ten anty rs mogles dac wczesniej duzo osob by skorzystalo  ;D


 

Neonek

Odp: [OTClient v8] Przydatne Skrypty
« Odpowiedź #3 dnia: 02 Luty 2022, 15:49:49 »
a macie moze skrypt na zaznaczanie Targetu Lidera na Mc ? zeby zaznaczał i bił z czaru
« Ostatnia zmiana: 02 Luty 2022, 21:57:40 wysłana przez Jebac PiS »
 

Neonek

Odp: [OTClient v8] Przydatne Skrypty
« Odpowiedź #4 dnia: 17 Luty 2022, 00:04:56 »
Fajnie by bylo jakby powstal skrypt jeszcze ze jak mana jest ponizej X to wylacza Cavebot i jak sie mana naladuje do X% to sie aktywuje i expi dalej.
 
Osoby które lubią ten post: Nyga Ricz

GxC

Odp: [OTClient v8] Przydatne Skrypty
« Odpowiedź #5 dnia: 21 Luty 2022, 12:21:51 »
-------------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

Odp: [OTClient v8] Przydatne Skrypty
« Odpowiedź #6 dnia: 11 Marzec 2022, 07:48:33 »
GFB POD DUPE

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)



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

Rstfj

Odp: [OTClient v8] Przydatne Skrypty
« Odpowiedź #7 dnia: 15 Marzec 2022, 17:22:35 »
W skrypcie na ava wystarczy dac id fbomby pozdrawiam.
GFB POD DUPE

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)



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


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

  • Przybysz
  • *
  • Wiadomości: 1
  • Reputacja: 0
    • Zobacz profil
Odp: [OTClient v8] Przydatne Skrypty
« Odpowiedź #8 dnia: 19 Styczeń 2023, 05:48:12 »
czy posiada ktos scrypt na robienie runek pod otc?