|
Post by crowface28 on Jul 16, 2022 3:23:39 GMT
The powershell line runs a command that says "summon". In order to use it, download NirCmd from www.nirsoft.net/utils/nircmd-x64.zip and place it in your path (c:\windows\system32\nircmd.exe) summonName = "strange gazer" summonDuration = 215
function round(num, numDecimalPlaces) local mult = 10^(numDecimalPlaces or 0) return math.floor(num * mult + 0.5) / mult end
while true do FindMobile(summonName) if FINDMOBILE == nil then sleep(1000) else print("summon found!") startTime = TIME sleep(1000) while TIME - startTime < (summonDuration - 15) do if round(TIME - startTime, 0) % 10 == 0 then print("Time left: " .. summonDuration - (round(TIME - startTime, 0))) end sleep(800) end os.execute("nircmd.exe speak text \"summon\"") repeat FindMobile(summonName) sleep(1000) until FINDMOBILE == nil clear() ResetVars() end sleep(1000) end
|
|