public void AddPQuest(PQuest_Info PQuest) { PQuest.OffX = X; PQuest.OffY = Y; PublicQuests.Add(PQuest); }
public static void GeneratePQuestObjective(PQuest_Objective Obj, PQuest_Info Q) { switch ((Objective_Type)Obj.Type) { case Objective_Type.QUEST_KILL_PLAYERS: { if (Obj.Description.Length < 1) Obj.Description = "Enemy Players"; } break; case Objective_Type.QUEST_SPEACK_TO: goto case Objective_Type.QUEST_KILL_MOB; case Objective_Type.QUEST_KILL_MOB: { uint ObjID = 0; uint.TryParse(Obj.ObjectId, out ObjID); if (ObjID != 0) Obj.Creature = GetCreatureProto(ObjID); if (Obj.Description.Length < 1 && Obj.Creature != null) Obj.Description = Obj.Creature.Name; } break; case Objective_Type.QUEST_GET_ITEM: { uint ObjID = 0; uint.TryParse(Obj.ObjectId, out ObjID); if (ObjID != 0) Obj.Item = GetItem_Info(ObjID); } break; }; }
public PQuestObject(PQuest_Info Info) : this() { this.Info = Info; Name = Info.Name; }
public PQuestObject CreatePQuest(PQuest_Info Quest) { PQuestObject Obj = new PQuestObject(Quest); AddObject(Obj, Quest.ZoneId); return Obj; }