Simple Event Spawner [SD]

Posts 1–7 of 7 · Page 1 of 1
Simple Event Spawner [SD]
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
aw i woulda released mine but i was like wait now sm people are gonna hve the unique feature jiodaknsmldsanbkjdasm,. kappa gj though
and yeah like he said disable the overspawning, not sure if he means this but this is what im guessing: go to cube and skull behavior and lower the amount of mini cubes/skulls they spawn or else youll have like 800000 in the room if noones there to kill it
Quote Originally Posted by Riigged View Post
aw i woulda released mine but i was like wait now sm people are gonna hve the unique feature jiodaknsmldsanbkjdasm,. kappa gj though
and yeah like he said disable the overspawning, not sure if he means this but this is what im guessing: go to cube and skull behavior and lower the amount of mini cubes/skulls they spawn or else youll have like 800000 in the room if noones there to kill it
or add a way to only spawn if there's a person in the room?
Quote Originally Posted by meap01 View Post


or add a way to only spawn if there's a person in the room?
yeah thats easy u can make it like the shatters enemies where they get unshielded and start attacking once u go near them, but someone can just leave after they do that without killing;P
Quote Originally Posted by meap01 View Post


or add a way to only spawn if there's a person in the room?
Or like I did, make them sucide if the Cube God/Skull Shrine is dead, is the most easy one
Nice! I made it for club559 its very good to have and you could use some of the codes if you wonna make candyland functionally.
idk what behavior db to put just put it on behaviordbabyss then tried to bought key then opened clicked enter nothing happens...
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?