Solved[FSOD] Make event spawn.

Posts 1–4 of 4 · Page 1 of 1
[FSOD] Make event spawn.
Looked in oryx.cs
idk if im stupid or just missed something, but how do I get my event to spawn? i already wrote xml and behvs (/spawing works perfectly)
thanks for the help
You have to create a setpiece for it, but you can make it blank like the Cube God.
 
CubeGod.cs found in setpieces folder.

Code:
namespace wServer.realm.setpieces
{
    internal class CubeGod : ISetPiece
    {
        public int Size
        {
            get { return 5; }
        }

        public void RenderSetPiece(World world, IntPoint pos)
        {
            Entity cube = Entity.Resolve(world.Manager, "Cube God");
            cube.Move(pos.X + 2.5f, pos.Y + 2.5f);
            world.EnterWorld(cube);
        }
    }
}


You now add your entity to Oryx.cs.
 
Oryx.cs








Once you finish adding the event, you can then make it a quest in Player.Leveling.cs.
 
Player.Leveling.cs


Ty vvvm. I was missing the setpiece

//solved
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?