Skip to content

agitend()

Warning

This page may contain outdated information, incompatible with the current version of Hercules and its coding standards.

Syntax

agitend();

Description

These two commands will start and end the War of Emperium.

This is a bit more complex than it sounds, since the commands themselves won't actually do anything interesting, except causing all OnAgitStart and OnAgitEnd events to run everywhere. They are used as simple triggers to run a lot of complex scripts in npc/guild, which are responsible for the actual starting and ending of the guild siege. agitstart() and agitend() are usually triggered by clock with an OnClock<time> labels.

Example

OnAgitInit:
	if (gettime(3) >= 19 && gettime(3) < 21) {
		agitstart();
	}
	end;

OnClock1900:
	agitstart();
	end;
OnClock2100:
	agitend();
	end;

Info

A basic WoE controller script, which resumes the siege, even when the server is started during the WoE period.