Example #1
0
        public void SpawnAfire(int fireX, int fireY, int fireZ)
        {
            GameWallofFire fire = new GameWallofFire();

            fire.Model           = 1;
            fire.Size            = 50;
            fire.Level           = 99;
            fire.Name            = "Wall of Fire";
            fire.CurrentRegionID = (ushort)Ianetor.playerregion;
            fire.Heading         = 1690;
            fire.Realm           = 0;
            fire.CurrentSpeed    = 0;
            fire.MaxSpeedBase    = 0;
            fire.GuildName       = "";
            fire.X               = fireX;
            fire.Y               = fireY;
            fire.Z               = fireZ;
            fire.RoamingRange    = 0;
            fire.RespawnInterval = 0;
            fire.BodyType        = 0;
            fire.Flags          ^= GameNPC.eFlags.CANTTARGET;
            fire.Flags          ^= GameNPC.eFlags.DONTSHOWNAME;

            FireBrain brain = new FireBrain();

            brain.AggroLevel = 100;
            brain.AggroRange = 0;
            fire.SetOwnBrain(brain);

            fire.AddToWorld();
            WallofFireList.Add(fire);

            return;
        }
Example #2
0
		public void SpawnAfire(int fireX, int fireY, int fireZ)
		{
			GameWallofFire fire = new GameWallofFire();
			fire.Model = 1;
			fire.Size = 50;
			fire.Level = 99;
			fire.Name = "Wall of Fire";
			fire.CurrentRegionID = (ushort)Ianetor.playerregion;
			fire.Heading = 1690;
			fire.Realm = 0;
			fire.CurrentSpeed = 0;
			fire.MaxSpeedBase = 0;
			fire.GuildName = "";
			fire.X = fireX;
			fire.Y = fireY;
			fire.Z = fireZ;
			fire.RoamingRange = 0;
			fire.RespawnInterval = 0;
			fire.BodyType = 0;
			fire.Flags ^= GameNPC.eFlags.CANTTARGET;
			fire.Flags ^= GameNPC.eFlags.DONTSHOWNAME;

			FireBrain brain = new FireBrain();
			brain.AggroLevel = 100;
			brain.AggroRange = 0;
			fire.SetOwnBrain(brain);

			fire.AddToWorld();
			WallofFireList.Add(fire);

			return;
		}