This is a simple Event spawner as seen on many Server like LagTool
How to add a Behave?
Simple.
1) Go into Visual Studio/Sharp Develop
2) visit Db/Data
3) open addition
4) add this
Code:
<Object type="0x242c" id="n Event Spawner" ext="true">
<Class>Character</Class>
<Texture>
<File>lofiChar216x16</File><Index>0x0e</Index>
</Texture>
<Size>0</Size>
<Defense>0</Defense>
<XpMult>0.0</XpMult>
<NoMiniMap />
</Object>
5) Go to wserver/logic/db
6) Open any BehaviorDb. - file
7) add this code
Code:
.Init("n Event Spawner",
new State(
new State("Cube God",
new ConditionalEffect(ConditionEffectIndex.Invincible),
new Spawn("Cube God", 1, coolDown: 10000),
new TimedTransition(12000, "Cube God Check")
),
new State("Cube God Check",
new EntityNotExistsTransition("Cube God", 10000, "Skull Shrine")
),
new State("Skull Shrine",
new ConditionalEffect(ConditionEffectIndex.Invincible),
new Spawn("Skull Shrine", 1, coolDown: 10000),
new TimedTransition(12000, "Skull Shrine Check")
),
new State("Skull Shrine Check",
new EntityNotExistsTransition("Skull Shrine", 10000, "Crystal")
),
new State("Crystal",
new ConditionalEffect(ConditionEffectIndex.Invincible),
new Spawn("Mysterious Crystal", 1, coolDown: 10000),
new TimedTransition(12000, "Crystal Check")
),
new State("Crystal Check",
new EntityNotExistsTransition("Mysterious Crystal", 12000, "Prisoner Check")
),
new State("Prisoner Check",
new EntityNotExistsTransition("Crystal Prisoner", 12000, "Grand Sphinx")
),
new State("Grand Sphinx",
new ConditionalEffect(ConditionEffectIndex.Invincible),
new Spawn("Grand Sphinx", 1, coolDown: 10000),
new TimedTransition(12000, "Grand Sphinx Check")
),
new State("Grand Sphinx Check",
new EntityNotExistsTransition("Grand Sphinx", 2000, "Cube God")
)
)
)
ps. Be sure to disable overspawning for Skulls and Cubes 