Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Awansowanie


heross2

Rekomendowane odpowiedzi

Opublikowano

Nie wiem czy jest opcja ale oto screen (jakby cos nie działało pisz , robi też ssy po dedzie żebys widział jak padłeś itd i gdzie )

 

 
local l = Self.Level()
while true do
    if (Self.Level() ~= l) then
        l = Self.Level()
        wait(100)
        screenshot(Self.Name() .. "_" .. os.date("%Y-%m-%d_%H-%M-%S_") .. "Level-" .. l)
    end
    if (Creature.HealthPercent(Self.ID()) <= 1) then
        wait(100)
        screenshot(Self.Name() .. "_" .. os.date("%Y-%m-%d_%H-%M-%S_") .. "Death-" .. Self.Level())
    end
    wait(500)
end
xmMfHrm.png
Opublikowano

przecież ten skrypt jest w folderze xenobota w folderze examples xD

 

--[[
	This is a XenoBot example script, intended to
	teach new users about the scripting API and 
	act as script that is usable in actual play.
	
	levelupScreenshot.lua - takes a screenshot upon level up

	** DO NOT EDIT THIS FILE. INSTEAD, COPY IT TO
	"Documents\XenoBot\Scripts" AND EDIT THE COPY. **
]]--


--this continuously loops, executing the code inside over and over again
while (true) do
	local name = Self.Name() --stores our name at the start
	local level = Self.Level() --stores our level at the start
	
	--this loops until our name changes (meaning we switched characters)
	while (name == Self.Name()) do
		--this checks if our level has increased, and screenshots if so
		if (Self.Level() > level) then
			level = Self.Level() --updates the stored level
			screenshot(name .. " level " .. level) --filename is "{name} level {level}
		end
		
		--this causes the loop to wait between 1 and 2 seconds before retrying
		wait(1500, 2500)
	end
end

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...