SolvedHow can i make a xp gift spawner?

Posts 1–10 of 10 · Page 1 of 1
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.
Quote Originally Posted by dhesscoORI View Post
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.
both are reconnect packets
make a command add a world and have you reconnect to that world.
Xp gift spawners=
make invisible object spawn xp gift
Edit: I should probably learn how to read, thougt u were asking for the behavior to a xp gift spawner. xD




XML:
Code:
  <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>
BEHAVIOR:
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 C", 3, coolDown: 10000),
                    new TimedTransition(5000,"spawn2")
                    ),
                new State("spawn2",
                    new Spawn("XP Gift C", 3, coolDown: 10000),
                    new TimedTransition(5000, "spawn")
            )
         )
    );
    }
}
Quote Originally Posted by MikeRaarupBirk View Post
Edit: I should probably learn how to read, thougt u were asking for the behavior to a xp gift spawner. xD




XML:
Code:
  <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>
BEHAVIOR:
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 C", 3, coolDown: 10000),
                    new TimedTransition(5000,"spawn2")
                    ),
                new State("spawn2",
                    new Spawn("XP Gift C", 3, coolDown: 10000),
                    new TimedTransition(5000, "spawn")
            )
         )
    );
    }
}
Since your a dank, mlg coder. How can I make them wander, and only spawn when they are dead...

Also, thanks it worked.
Quote Originally Posted by dhesscoORI View Post
Since your a dank, mlg coder. How can I make them wander, and only spawn when they are dead...

Also, thanks it worked.
new Wander(0.2) in the xp gift behavior
Quote Originally Posted by MikeRaarupBirk View Post
new Wander(0.2) in the xp gift behavior
Thanks. //char
Quote Originally Posted by dhesscoORI View Post
Since your a dank, mlg coder. How can I make them wander, and only spawn when they are dead...

Also, thanks it worked.
This makes me laugh
Quote Originally Posted by Desire View Post
This makes me laugh
watsup bear i have a dank question... Why are you laughing... and how do I make them only spawn when they are dead ...

- - - Updated - - -

... whatever close plz
@Luis @Raple @Danny

Closerino

- - - Updated - - -

Quote Originally Posted by dhesscoORI View Post
watsup bear i have a dank question... Why are you laughing... and how do I make them only spawn when they are dead ...

- - - Updated - - -

... whatever close plz
Entity not exist transition into a spawn state
This thread was pretty interesting, might compile a full one sometime.
Posts 1–10 of 10 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?