예제 #1
0
파일: BaseNPC.cs 프로젝트: karliky/wowwow
 /// <summary>
 /// Quest for this npc ?
 /// </summary>
 public static bool QuestForNPC( BaseQuest bq, BaseNPC npc )
 {
     return bq.HaveNPCTargetId && bq.NPCTargetId == npc.Id;
 }
예제 #2
0
 /// <summary>
 /// Quest for this npc ?
 /// </summary>
 public static bool QuestForNPC(BaseQuest bq, BaseNPC npc)
 {
     return(bq.HaveNPCTargetId && bq.NPCTargetId == npc.Id);
 }
예제 #3
0
파일: BaseNPC.cs 프로젝트: karliky/wowwow
 /// <summary>
 /// User have [result] quests from NPC
 /// </summary>
 public static int AmountMyQuests( Character c, BaseNPC npc )
 {
     int result = 0;
     if ( npc.Quests != null )
     {
         foreach ( BaseQuest bq in npc.Quests )
         {
             result += c.HaveQuest( bq ) ? 1 : 0;
         }
     }
     return result;
 }