How can i make a xp gift spawner?
I wanna make a /xpgift where it sends you to a area where xp gifts respawn. Also a /arena command, where donors can spawn a arena where people can't die.
<Object ext="true" id="XP Gift Spawner">
<Class>Character</Class>
<Enemy/>
<Texture>
<File>invisible</File>
<Index>0</Index>
</Texture>
<NoMiniMap/>
<Size>0</Size>
<XpMult>0.0</XpMult>
<StasisImmune/>
<DisplayId>XP Gift Spawner</DisplayId>
</Object>
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 C", 3, coolDown: 10000),
new TimedTransition(5000,"spawn2")
),
new State("spawn2",
new Spawn("XP Gift C", 3, coolDown: 10000),
new TimedTransition(5000, "spawn")
)
)
);
}
}