Hello I am trying to setup the spawner so that it repeats once you kill all of the XP Gifts but it wont could anyone tell me why?
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using wServer.realm;
using wServer.logic.behaviors;
using wServer.logic.loot;
using wServer.logic.transitions;
namespace wServer.logic
{
partial class BehaviorDb
{
_ Xpfarm = () => Behav()
.Init("XP Gift Spawner",
new State(
new State("spawn",
new ConditionalEffect(ConditionEffectIndex.Invincible),
new Spawn("XP Gift", maxChildren: 5, initialSpawn: 3),
new TimedTransition(2000, "Check"
),
new State("Check",
new EntityNotExistsTransition("XP Gift", 50, "spawn")
)
)
)
)
;
}
}
- - - Updated - - -
@Ahlwong, @Raple It is solved!