Exemple #1
0
        public void SpawnAPurro(int purroX, int purroY, int purroZ)
        {
            GamePurros purro = new GamePurros();

            purro.Model           = 911;
            purro.Size            = 50;
            purro.Level           = 60;
            purro.Name            = "purros";
            purro.CurrentRegionID = (ushort)Ianetor.playerregion;
            purro.Heading         = 1690;
            purro.Realm           = 0;
            purro.CurrentSpeed    = 0;
            purro.MaxSpeedBase    = 350;
            purro.GuildName       = "";
            purro.X               = purroX;
            purro.Y               = purroY;
            purro.Z               = purroZ;
            purro.RoamingRange    = 0;
            purro.RespawnInterval = 0;
            purro.BodyType        = 0;

            PurroBrain pbrain = new PurroBrain();

            pbrain.AggroLevel = 100;
            pbrain.AggroRange = 200;
            purro.SetOwnBrain(pbrain);

            purro.AddToWorld();
            Ianetor.PurrosList.Add(purro);
            GameEventMgr.AddHandler(purro, GameNPCEvent.Dying, new DOLEventHandler(Ianetor.PurroHasDied));
            return;
        }
Exemple #2
0
		public void SpawnAPurro(int purroX, int purroY, int purroZ)
		{
			GamePurros purro = new GamePurros();
			purro.Model = 911;
			purro.Size = 50;
			purro.Level = 60;
			purro.Name = "purros";
			purro.CurrentRegionID = (ushort)Ianetor.playerregion;
			purro.Heading = 1690;
			purro.Realm = 0;
			purro.CurrentSpeed = 0;
			purro.MaxSpeedBase = 350;
			purro.GuildName = "";
			purro.X = purroX;
			purro.Y = purroY;
			purro.Z = purroZ;
			purro.RoamingRange = 0;
			purro.RespawnInterval = 0;
			purro.BodyType = 0;

			PurroBrain pbrain = new PurroBrain();
			pbrain.AggroLevel = 100;
			pbrain.AggroRange = 200;
			purro.SetOwnBrain(pbrain);

			purro.AddToWorld();
			Ianetor.PurrosList.Add(purro);
			GameEventMgr.AddHandler(purro, GameNPCEvent.Dying, new DOLEventHandler(Ianetor.PurroHasDied));
			return;
			
		}