Castle Sieges
Updated: 11/07/2005
Preliminary Siege Engine documentation This document is not complete. More will be added later
===========================================================================
Database table: castle
siegeDate The milisecond value from 1/1/1970 that the next siege will start
siegeDayOfWeek 1 (Sunday) - 7 (Saturday) day of a week that siege for that castle will happen
siegeHourOfDay 0 - 23 hour of a day (server time) that siege for that castle will happen
===========================================================================
Database table: castle_siege_guards
castleId
Castle the guards belong to.
When siege starts, all the guards that belongs to the castle being siege will spawn.
id Auto incremented id
npcId The npc to be spawned. Similar to npc_templateId of spawnlist table.
x The x coordinate to spawn the guard at when spawned.
y The y coordinate to spawn the guard at when spawned.
z The z coordinate to spawn the guard at when spawned.
heading The direction the guard will be facing when spawned.
respawnDelay The respawn time of the guard in seconds (default: 0 second to never respawn)
isHired
Value 0 is used to flag server's default siege guard for castle not owned by any clan.
Value 1 is used to flag guards hired (mercs) by castle lord. (default)
===========================================================================
Siege Phases
Start Guards will spawn Doors will close and get their upgrades applied (if any) Artifact will spawn
Mid Victory
When the leader of a clan successfully cast Seal of Rule on the artifact.
Defender becomes Attacker (if any)
Attacker becomes Defender
All guards will despawn
All doors will loose all their upgrades
All new attackers will be teleported to town
All headquarters will be removed.
Siege continues until end
End
Siege will end after 2 hour or end if there are no attacking clan
(usually when castle is owned by Npc clan)
Next Siege for current sieged castle will be auto scheduled 14 days from current.
===========================================================================
Starting a Siege
At least 1 attacker must be registered either thru registration guard
(at least 24 hr before start of siege) or by GM.
Siege will auto start at the scheduled date/time or by GM.
===========================================================================
Adding Siege Guards
Admin can add siege guards by using the admin or admin_siege command
Enter in the NpcId? you wish to add for the selected castle.
The location and direction the GM is facing when adding will be the x,y,z,
heading used for the guard.
===========================================================================
Hiring Mercs (implementation not complete yet)
Castle Lord can purchase/hire merc from Merc Manager.
Lords will be given merc tickets.
Caslte Lords will move to the location where they want to place the Mercs and use the ticket.
The location and direction the lord is facing when using the ticket will be the x,y,z,
heading used for the merc.
Below is the old guide that I will leave for some of its info.
Sieges are currently started by a GM, however at a later stage they will be automatic.
You can open the siege menu using siege
Start Siege: Starts a siege over <Castle Name>
Give Castle: Gives selected players clan <Castle Name> Castle
Move Defenders(1): Moves all registered defenders to inside <CastleName?> Castle
Add Attacker: Adds selected players clan to the attackers list
Add Defender: Adds selected players clan to the defenders list
Move Defenders(2): Moves defenders to inside the castle under siege
List Clans: Lists attackers and defenders
Clear list: clears all registered attackers and defenders
End Siege: End and clean up the current siege:
port anyone who does not own the castle to the nearest town, delete all siege clans,
and re spawn doors.
Spawn Doors: Spawn all castle doors
Various siege settings can be changed in siege.properties
Once a clan advances to lvl 4, the leader gets the Build Headquarters,
and the Seal of Ruler Skills, which may be used when attacking in sieges.
Clan leaders on the attacking side can use the Build Headquarters skill to create a flag Flags start with 1/3 HP, so it is advisable to place them in a safe location, and heal them. The cost of creating a flag may be set in siege.properties.
Attackers who’s clan has a flag, will spawn at it instead of the normal spot.
A clan may have as many flags as is set in siege.properties,
you will spawn at the most recently placed one.
Clan leaders on the attacking side can use the Seal of Ruler Skill when standing
on the podium behind the throne, and when they have the holy artefact targeted.
Once finished casting, the clan will gain
control of the castle, and the siege will end and be "cleaned up" after 10 seconds.
For now the holy artefacts must be spawned, using spawn <id> Gludio: 7250 Dion: 12123 Giran: 12154 Oren: 12242 Aden: 12291 Innadril: 12602
Attackers and defenders have a respawn time that may be set in siege.properties.
Control towers will be spawned in locations defined in siege.properties. When a control tower is killed, the defenders will receive a re-spawn penalty of CTLossPenalty ms.
Rewards given every 2 hours to clan leaders may be set in siege.properties.
Respawn points may be set in siege.properties.
Can now siege Oren castle
Siege Golems work, however you will need to add the skill to any dwarfs wishing to use it, as I don’t think it can be learned atm. Use admin menu, and add skill 13, level 1
You don’t need to hold control to attack when in a siege, although the sword cursor doesn’t appear (need to fix).
Escape Scrolls modified to add Escape to castle (and also agit scrolls act like normal escapes)
How sieges work (or how I would run one)
Admin clears Gludio / Giran / Dion / Oren of all NPCs
taking Gludio as an example:
Admin announces siege will start soon, and that players should come to Gludio castle town centre Admin asks players to divide into attackers and defenders Admin selects one member for each clan that wants to attack and clicks Add Attacker Admin selects one member for each clan that wants to defend and clicks Add Defender To announce the participant list, the admin may use List Clans
Admin asks defenders to stay near the bridge near the castle town Admin types move defenders to port all defenders into the castle, the top one to move to the castle name entered, and the bottom one if the siege has already been started.
When all players are ready, admin may use Start Siege.
The area around the castle will now function like an arena, for all players, however, when a player dies he will re spawn at the selected respawn point. Non-registered members will respawn at the closest town.
Clan leaders on the attacking side can use the Seal of Ruler Skill when standing on the podium behind the throne, and when they have the holy artefact targeted. Once finished casting, the clan will gain control of the castle, and the siege will end and be "cleaned up" after 10 seconds.
The admin may end the siege early using End Siege (or clean_up_siege)
Clans who own castles get a reward specified in siege.properties, and will be able to use escape to castle scrolls to escape to inside their castle.
Admin may place NPCs with special functions inside the castle, to benefit the winners. (gatekeepers, vendors etc)
