Advertisement
Guest User

Untitled

a guest
May 12th, 2018
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.04 KB | None | 0 0
  1. using Turbo.Plugins.Default;
  2.  
  3. namespace Turbo.Plugins.Prrovoss
  4. {
  5.  
  6.     public class Test: BasePlugin, IInGameWorldPainter
  7.     {
  8.    
  9.         public Test()
  10.         {
  11.             Enabled = true;
  12.         }
  13.  
  14.         public override void Load(IController hud)
  15.         {
  16.             base.Load(hud);
  17.         }
  18.  
  19.         public void PaintWorld(WorldLayer layer)
  20.         {
  21.             Jack.Says.Debug("IsStoryMode1: "+IsStoryMode1());
  22.             Jack.Says.Debug("IsStoryMode2: "+IsStoryMode2());
  23.             Jack.Says.Debug("-----");
  24.         }
  25.  
  26.         private bool IsStoryMode1()
  27.         {
  28.             foreach (IQuest quest in Hud.Game.Quests)
  29.             {
  30.                 if (quest.SnoQuest.Type == QuestType.MainQuest) return true;
  31.             }
  32.             return false;
  33.         }
  34.  
  35.         private bool IsStoryMode2()
  36.         {
  37.             foreach (IQuest quest in Hud.Game.Quests)
  38.             {
  39.                 if (quest.SnoQuest.Type != QuestType.MainQuest) return false;
  40.             }
  41.             return true;
  42.         }
  43.  
  44.     }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement