• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

auto radiwo?

a co to jest?
@down
czy to na pewno się nazywa auto radiwo ? bo google nic takiego nie znalazło
 
Last edited:
Chce sobie raidy zrobić o danej godzince a to jak słyszałem mi w tym pomoże
 
hashahahh auto radiwo można zrobić o wyznaczonej godzince, już tłumaczę jak:

PHP:
<globalevent name="auto_radiwo" time="21:35:11" event="script" value="auto_radiwo.lua"/>


PHP:
function onThink(interval, lastExecution)
		executeRaid("Nazwa_Bossa")
return TRUE
end

powinno działać
 
<globalevent name="raid" interval="108000" event="script" value="raid.lua"/>
PHP:
local storage = 1344
local raids = {
	"Morgaroth",
	"Ghazbaran",
	"Undead Jester",
	"goblin",
	"Dryads",
	"Halloweenhare",
	"Hornedfox",
	"Necropharus",
	"Wolfsraid",
	"UndeadArmy",
	"UndeadDarashia",
	"The Old Widow",
	"Scarabs",
	"Rats",
	"Quara",
	"Pirates",
	"Orshabaal",
	"OrcsThais",
	"Ferumbras",
	"Elfs",
	"Demodras",
	"Barbarian"
}
function onThink(interval, lastExecution, thinkInterval)
	if getGlobalStorageValue(storage) == -1 or getGlobalStorageValue(storage) < os.time() then
		executeRaid(raids[math.random(1, #raids)])
		setGlobalStorageValue(storage, os.time() + 9 * 60 * 60)
	end
	return TRUE
end
 
<globalevent name="raid" interval="108000" event="script" value="raid.lua"/>
PHP:
local storage = 1344
local raids = {
	"Morgaroth",
	"Ghazbaran",
	"Undead Jester",
	"goblin",
	"Dryads",
	"Halloweenhare",
	"Hornedfox",
	"Necropharus",
	"Wolfsraid",
	"UndeadArmy",
	"UndeadDarashia",
	"The Old Widow",
	"Scarabs",
	"Rats",
	"Quara",
	"Pirates",
	"Orshabaal",
	"OrcsThais",
	"Ferumbras",
	"Elfs",
	"Demodras",
	"Barbarian"
}
function onThink(interval, lastExecution, thinkInterval)
	if getGlobalStorageValue(storage) == -1 or getGlobalStorageValue(storage) < os.time() then
		executeRaid(raids[math.random(1, #raids)])
		setGlobalStorageValue(storage, os.time() + 9 * 60 * 60)
	end
	return TRUE
end

Mam to samo i to działa.
 
Back
Top