示例#1
0
 private void OnStatueSpawn( StatueSpawnEventArgs args )
 {
     if( args.Within200 < Config.StatueSpawn200 && args.Within600 < Config.StatueSpawn600 && args.WorldWide < Config.StatueSpawnWorld )
     {
         args.Handled = true;
     }
     else
     {
         args.Handled = false;
     }
 }
示例#2
0
        public static bool OnStatueSpawn(int n1, int n2, int n3, int type, bool npc)
        {
            if (StatueSpawn == null)
            {
                return false;
            }
            StatueSpawnEventArgs args = new StatueSpawnEventArgs
            {
                Within200 = n1,
                Within600 = n2,
                WorldWide = n3,
                Type = type,
                NPC = npc
            };

            GameHooks.StatueSpawn(args);

            return args.Handled;
        }