Why does this not work ...
code
using wServer.logic.behaviors;
using wServer.logic.transitions;
using wServer.logic.loot;
namespace wServer.logic
{
partial class BehaviorDb
{
private _ XPGiftSpawner = () => Behav()
.Init("XP Gift Spawner",
new State(
new ConditionalEffect(ConditionEffectIndex.Invincible) ,
new State("Idle",
new PlayerWithinTransition(10, "spawn")
),
new State("spawn",
new Spawn("XP Gift", 3, coolDown: 10000),
new TimedTransition(5000, "spawn2")
),
new State("spawn2",
new Spawn("XP Gift", 3, coolDown: 10000),
new TimedTransition(25, "death")
)),
new State(
new State("death",
new EntityNotExistsTransition("Xp Gift", 25, "Idle",
new EntityNotExistsTransition("Xp Gift", 25, "spawn2"
)))));
} }
error
Severity Code Description Project File Line Suppression State
Error CS1729 'EntityNotExistsTransition' does not contain a constructor that takes 4 arguments wServer C:\Users\#\Desktop\Rotmg PServer\Gummy's Realm\wServer\logic\XpGiftSpawner.cs 26 Active
help pplz do yalls magic