コード例 #1
0
        public PQuestObject CreatePQuest(PQuest_Info Quest)
        {
            PQuestObject Obj = new PQuestObject(Quest);

            AddObject(Obj, Quest.ZoneId);
            return(Obj);
        }
コード例 #2
0
        /*
         *   // Group LOOT : Pass , accept, cancel
         *    Out.WritePacketString(@"|07 19 0A 00 00 00 00 03 2E 56 22 B9 00 |............V..|
         |00 00 00 00 00 00 00 00 24 00 00 00 00 00 01 00 |........$.......|
         |00 00 00 00 00 00 00 00 00 00 00 00 00 09 C4 00 |................|
         |01 00 00 00 00 00 00 00 00 00 00 00 00 09 57 61 |..............Wa|
         |72 20 43 72 65 73 74 00 00 00 00 00 00 71 50 72 |r Crest......qPr|
         |6F 6F 66 20 6F 66 20 79 6F 75 72 20 76 61 6C 6F |oof of your valo|
         |72 20 6F 6E 20 74 68 65 20 66 69 65 6C 64 20 6F |r on the field o|
         |66 20 62 61 74 74 6C 65 2E 20 54 68 65 73 65 20 |f battle. These |
         |6D 61 79 20 62 65 20 75 73 65 64 20 74 6F 20 74 |may be used to t|
         |72 61 64 65 20 66 6F 72 20 65 71 75 69 70 6D 65 |rade for equipme|
         |6E 74 20 66 72 6F 6D 20 76 61 72 69 6F 75 73 20 |nt from various |
         |51 75 61 72 74 65 72 6D 61 73 74 65 72 73 2E 01 |Quartermasters..|
         |00 00 00 03 06 00 08 00 00 00 00 00 00 00 00 00 |................|
         |00 00 00 00 00 00 00 00 00 00                   |..........      |");
         */



        public override void SetDeath(Unit Killer)
        {
            if (Killer.IsPlayer())
            {
                Player Plr = Killer.GetPlayer();

                PQuestObject pq = Plr.QtsInterface.GetPublicQuest();
                if (pq != null)
                {
                    pq.HandleEvent(Objective_Type.QUEST_KILL_MOB, Spawn.Entry, 1);
                }
            }

            Killer.QtsInterface.HandleEvent(Objective_Type.QUEST_KILL_MOB, Spawn.Entry, 1);
            base.SetDeath(Killer);

            if (Spawn.Entry == 28432 || Spawn.Entry == 34357 || Spawn.Entry == 5780)       // Lair Bosses 2 hour spawn time
            {
                EvtInterface.AddEvent(RezUnit, (7200000 + RandomMgr.Next(0, 3600000)), 1); // 2 hours seconds Rez
            }
            else
            {
                EvtInterface.AddEvent(RezUnit, 50000 + Level * 1000, 1); // 30 seconds Rez
            }
        }
コード例 #3
0
 public void SetPublicQuest(PQuestObject pq)
 {
     this.pq = pq;
 }
コード例 #4
0
ファイル: RegionMgr.cs プロジェクト: dzikun/WarEmu
 public PQuestObject CreatePQuest(PQuest_Info Quest)
 {
     PQuestObject Obj = new PQuestObject(Quest);
     AddObject(Obj, Quest.ZoneId);
     return Obj;
 }